Skip to content

Commit 5c036d1

Browse files
frontsideairrandycoulman
authored andcommitted
Enable compression on webpack-dev-server (facebook#966) (facebook#968)
1 parent 85b887d commit 5c036d1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/react-scripts/scripts/start.js

+2
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,8 @@ function addMiddleware(devServer) {
197197

198198
function runDevServer(host, port, protocol) {
199199
var devServer = new WebpackDevServer(compiler, {
200+
// Enable gzip compression of generated files.
201+
compress: true,
200202
// Silence WebpackDevServer's own logs since they're generally not useful.
201203
// It will still show compile warnings and errors with this setting.
202204
clientLogLevel: 'none',

0 commit comments

Comments
 (0)