From 5c036d1dd67b87c96d9e3c0aa68e2a40461b9efc Mon Sep 17 00:00:00 2001 From: Fatih Date: Fri, 28 Oct 2016 15:41:51 +0300 Subject: [PATCH] Enable compression on webpack-dev-server (#966) (#968) --- packages/react-scripts/scripts/start.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/react-scripts/scripts/start.js b/packages/react-scripts/scripts/start.js index f22afb05984..25e3c5584dd 100644 --- a/packages/react-scripts/scripts/start.js +++ b/packages/react-scripts/scripts/start.js @@ -197,6 +197,8 @@ function addMiddleware(devServer) { function runDevServer(host, port, protocol) { var devServer = new WebpackDevServer(compiler, { + // Enable gzip compression of generated files. + compress: true, // Silence WebpackDevServer's own logs since they're generally not useful. // It will still show compile warnings and errors with this setting. clientLogLevel: 'none',