Skip to content

Commit 1882b65

Browse files
Merge pull request #2394 from shahmirn/master
docs: add autoRestart: false to RunScriptWebpackPlugin
2 parents 11a0f28 + ba3fc17 commit 1882b65

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

content/recipes/hot-reload.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ module.exports = function (options, webpack) {
4141
new webpack.WatchIgnorePlugin({
4242
paths: [/\.js$/, /\.d\.ts$/],
4343
}),
44-
new RunScriptWebpackPlugin({ name: options.output.filename }),
44+
new RunScriptWebpackPlugin({ name: options.output.filename, autoRestart: false }),
4545
],
4646
};
4747
};
@@ -129,7 +129,7 @@ module.exports = {
129129
},
130130
plugins: [
131131
new webpack.HotModuleReplacementPlugin(),
132-
new RunScriptWebpackPlugin({ name: 'server.js' }),
132+
new RunScriptWebpackPlugin({ name: 'server.js', autoRestart: false }),
133133
],
134134
output: {
135135
path: path.join(__dirname, 'dist'),

0 commit comments

Comments
 (0)