31 lines
534 B
JavaScript
31 lines
534 B
JavaScript
|
const path = require('path');
|
||
|
|
||
|
module.exports =
|
||
|
{
|
||
|
mode: "development",
|
||
|
devtool: "inline-source-map",
|
||
|
entry:
|
||
|
{
|
||
|
firstExample: "./src/firstExample.ts",
|
||
|
},
|
||
|
output:
|
||
|
{
|
||
|
filename: "./JS/[name].app.js",
|
||
|
path: path.resolve(__dirname, "public")
|
||
|
},
|
||
|
resolve: {
|
||
|
extensions: ['.tsx', '.ts', '.js'],
|
||
|
},
|
||
|
module: {
|
||
|
rules: [
|
||
|
{
|
||
|
test: /\.tsx?$/,
|
||
|
use: 'ts-loader',
|
||
|
exclude: /node_modules/,
|
||
|
},
|
||
|
],
|
||
|
},
|
||
|
devServer: {
|
||
|
contentBase: path.join(__dirname, "public")
|
||
|
},
|
||
|
};
|