Enable compression on webpack-dev-server (#966) (#968)

This commit is contained in:
Fatih
2016-10-28 15:41:51 +03:00
committed by Dan Abramov
parent 75d158528c
commit ca443abe62

View File

@@ -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',