mirror of
https://github.com/zhigang1992/create-react-app.git
synced 2026-04-23 04:40:23 +08:00
Prevent Webpack from watching node_modules dir (#294)
This commit is contained in:
@@ -155,7 +155,10 @@ function runDevServer(port) {
|
||||
historyApiFallback: true,
|
||||
hot: true, // Note: only CSS is currently hot reloaded
|
||||
publicPath: config.output.publicPath,
|
||||
quiet: true
|
||||
quiet: true,
|
||||
watchOptions: {
|
||||
ignored: /node_modules/
|
||||
}
|
||||
}).listen(port, (err, result) => {
|
||||
if (err) {
|
||||
return console.log(err);
|
||||
|
||||
Reference in New Issue
Block a user