24 lines
490 B
JavaScript
24 lines
490 B
JavaScript
|
const path = require('path');
|
||
|
module.exports = {
|
||
|
watch: true,
|
||
|
devtool: 'inline-source-map',
|
||
|
entry: path.join(__dirname, 'build', 'index'),
|
||
|
module: {
|
||
|
rules: [
|
||
|
{
|
||
|
test: /\.tsx?$/,
|
||
|
use: 'ts-loader',
|
||
|
exclude: '/node_modules/'
|
||
|
},
|
||
|
],
|
||
|
},
|
||
|
resolve: {
|
||
|
extensions: ['.tsx', '.ts', '.js'],
|
||
|
},
|
||
|
output: {
|
||
|
path: path.join(__dirname, 'dist', 'js'),
|
||
|
publicPath: '/dist/',
|
||
|
filename: "bundle.js",
|
||
|
chunkFilename: '[name].js'
|
||
|
}
|
||
|
};
|