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 alexdriaguine committed Jan 23, 2017
1 parent 38579f0 commit c55aa7c
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 @@ -195,6 +195,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 c55aa7c

Please sign in to comment.