diff --git a/packages/react-scripts/config/webpackDevServer.config.js b/packages/react-scripts/config/webpackDevServer.config.js index 60a9713df33..c106c5e182e 100644 --- a/packages/react-scripts/config/webpackDevServer.config.js +++ b/packages/react-scripts/config/webpackDevServer.config.js @@ -72,6 +72,10 @@ module.exports = function(proxy, allowedHost) { // WebpackDevServer is noisy by default so we emit custom message instead // by listening to the compiler events with `compiler.hooks[...].tap` calls above. quiet: true, + // WebpackDevServer has an option to write every build to disk. This can be + // useful for certain use cases such as developing browser extensions where one + // would need to otherwise do full builds. + writeToDisk: process.env.WRITE_TO_DISK === 'true', // Reportedly, this avoids CPU overload on some systems. // https://github.com/facebook/create-react-app/issues/293 // src/node_modules is not ignored to support absolute imports