Skip to content

Commit

Permalink
Enable compression on webpack-dev-server (facebook#966) (facebook#968)
Browse files Browse the repository at this point in the history
  • Loading branch information
frontsideair authored and randycoulman committed May 8, 2017
1 parent 85b887d commit 5c036d1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/react-scripts/scripts/start.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 5c036d1

Please sign in to comment.