Skip to content

Commit 522f872

Browse files
committed
feat(优化): sourcemap方便DEBUG,build前清空
1 parent 6dd1bac commit 522f872

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: webpack.config.js

+2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ module.exports = {
77
output: {
88
filename: 'main.js',
99
path: path.resolve(__dirname, 'dist'),
10+
clean: true,
1011
},
12+
devtool: 'inline-source-map',
1113
devServer: {
1214
static: './dist',
1315
},

0 commit comments

Comments
 (0)