Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit ca443ab

Browse filesBrowse files
frontsideairgaearon
authored andcommitted
Enable compression on webpack-dev-server (facebook#966) (facebook#968)
1 parent 75d1585 commit ca443ab
Copy full SHA for ca443ab

File tree

1 file changed

+2
-0
lines changed
Filter options

1 file changed

+2
-0
lines changed

‎packages/react-scripts/scripts/start.js

Copy file name to clipboardExpand all lines: packages/react-scripts/scripts/start.js
+2Lines changed: 2 additions & 0 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.