Skip to content

Commit 04fc452

Browse files
committed
build: Fix watch mode
1 parent da908fa commit 04fc452

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

tsconfig.json

+6-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,12 @@
66
"module": "es6",
77
"target": "es5",
88
"outDir": "./dist",
9-
"allowJs": true
9+
"allowJs": true,
10+
"moduleResolution": "node",
11+
"baseUrl": ".",
12+
"paths": {
13+
"*": ["src/*"]
14+
}
1015
},
1116
"include": [
1217
"src/**/*",

webpack.config.js

+9-2
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,18 @@ module.exports = function () {
4141
path: path.resolve(__dirname, 'dist'),
4242
},
4343
plugins: [
44-
new CleanWebpackPlugin(),
4544
new webpack.ProgressPlugin(),
45+
new CleanWebpackPlugin(),
4646
new CopyPlugin({
4747
patterns: [
48-
{ from: 'public'},
48+
{
49+
from: 'public',
50+
globOptions: {
51+
ignore: [
52+
'**/index.html'
53+
]
54+
}
55+
},
4956
],
5057
}),
5158
new HtmlWebpackPlugin({

0 commit comments

Comments
 (0)