Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Meta
create-react-app
Commits
ca443abe
Commit
ca443abe
authored
8 years ago
by
Fatih
Committed by
Dan Abramov
8 years ago
Browse files
Options
Download
Email Patches
Plain Diff
Enable compression on webpack-dev-server (
#966
) (#968)
parent
75d15852
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
packages/react-scripts/scripts/start.js
+2
-0
packages/react-scripts/scripts/start.js
with
2 additions
and
0 deletions
+2
-0
packages/react-scripts/scripts/start.js
+
2
-
0
View file @
ca443abe
...
...
@@ -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
'
,
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Snippets