Skip to content

Commit cf53613

Browse files
frontsideairjarlef
authored andcommitted
Enable compression on webpack-dev-server (facebook#966) (facebook#968)
1 parent b21c0e8 commit cf53613

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: packages/react-scripts/scripts/start.js

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

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

0 commit comments

Comments
 (0)