undefinedTV/webpack.config.js

24 lines
490 B
JavaScript
Raw Normal View History

2020-12-20 21:47:53 +01:00
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'
}
};