Commit ca443abe authored by Fatih's avatar Fatih Committed by Dan Abramov
Browse files

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

parent 75d15852
No related merge requests found
Showing with 2 additions and 0 deletions
+2 -0
......@@ -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',
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment