1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
const path = require('path');
module.exports = {
entry: './src/js/main.js',
output: {
path: path.resolve(__dirname,'dist'),
filename: './js/main.js',
clean: true,
},
devServer: {
static: path.resolve(__dirname,'dist'),
compress: true,
hot: true,
watchFiles: ['src/**/*']
},
devtool: 'source-map' //自動生成sourceMap檔
}
|