We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 00658ca commit a276847Copy full SHA for a276847
1 file changed
sample/08-webpack/webpack-hmr.config.js
@@ -5,7 +5,7 @@ const StartServerPlugin = require('start-server-webpack-plugin');
5
module.exports = function(options) {
6
return {
7
...options,
8
- entry: ['webpack/hot/poll?100', './src/main.ts'],
+ entry: ['webpack/hot/poll?100', options.entry],
9
watch: true,
10
externals: [
11
nodeExternals({
@@ -15,7 +15,7 @@ module.exports = function(options) {
15
plugins: [
16
...options.plugins,
17
new webpack.HotModuleReplacementPlugin(),
18
- new StartServerPlugin({ name: 'main.js' }),
+ new StartServerPlugin({ name: options.output.filename }),
19
],
20
};
21
0 commit comments