Skip to content

Commit 6a8f79c

Browse files
dceddiagaearon
authored andcommitted
Prevent Webpack from watching node_modules dir (#294)
1 parent 6a830a5 commit 6a8f79c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

scripts/start.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,10 @@ function runDevServer(port) {
155155
historyApiFallback: true,
156156
hot: true, // Note: only CSS is currently hot reloaded
157157
publicPath: config.output.publicPath,
158-
quiet: true
158+
quiet: true,
159+
watchOptions: {
160+
ignored: /node_modules/
161+
}
159162
}).listen(port, (err, result) => {
160163
if (err) {
161164
return console.log(err);

0 commit comments

Comments
 (0)