File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ const StartServerPlugin = require('start-server-webpack-plugin');
28
28
module .exports = function (options ) {
29
29
return {
30
30
... options ,
31
- entry: [' webpack/hot/poll?100' , ' ./src/main.ts ' ],
31
+ entry: [' webpack/hot/poll?100' , options . entry ],
32
32
watch: true ,
33
33
externals: [
34
34
nodeExternals ({
@@ -39,7 +39,7 @@ module.exports = function(options) {
39
39
... options .plugins ,
40
40
new webpack .HotModuleReplacementPlugin (),
41
41
new webpack .WatchIgnorePlugin ([/ \. js$ / , / \. d\. ts$ / ]),
42
- new StartServerPlugin ({ name: ' main.js ' }),
42
+ new StartServerPlugin ({ name: options . output . filename }),
43
43
],
44
44
};
45
45
};
@@ -69,7 +69,7 @@ bootstrap();
69
69
To simplify the execution process, add a script to your ` package.json ` file.
70
70
71
71
``` json
72
- "start:dev" : " nest build --watch -- webpack --webpackPath webpack-hmr.config.js"
72
+ "start:dev" : " nest build --webpack --webpackPath webpack-hmr.config.js"
73
73
```
74
74
75
75
Now simply open your command line and run the following command:
You can’t perform that action at this time.
0 commit comments