22 lines
392 B
JavaScript
22 lines
392 B
JavaScript
const path = require('path');
|
|
|
|
module.exports = {
|
|
entry: './src/main.ts',
|
|
output: {
|
|
filename: 'bundle.js',
|
|
path: path.resolve(__dirname, 'generated'),
|
|
module: true,
|
|
//clean: true,
|
|
},
|
|
devServer: {
|
|
static: path.join(__dirname, "."),
|
|
compress: true,
|
|
port: 9000,
|
|
client: {
|
|
overlay: false,
|
|
}
|
|
},
|
|
experiments: {
|
|
outputModule: true,
|
|
},
|
|
}; |