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
fd2a800f
Commit
fd2a800f
authored
7 years ago
by
Dan Abramov
Committed by
GitHub
7 years ago
Browse files
Options
Download
Email Patches
Plain Diff
Disable Uglify reduce_vars (#2200)
parent
c27d7650
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
packages/react-scripts/config/webpack.config.prod.js
+4
-0
packages/react-scripts/config/webpack.config.prod.js
with
4 additions
and
0 deletions
+4
-0
packages/react-scripts/config/webpack.config.prod.js
+
4
-
0
View file @
fd2a800f
...
...
@@ -280,6 +280,10 @@ module.exports = {
new
webpack
.
optimize
.
UglifyJsPlugin
({
compress
:
{
warnings
:
false
,
// This feature has been reported as buggy a few times, such as:
// https://github.com/mishoo/UglifyJS2/issues/1964
// We'll wait with enabling it by default until it is more solid.
reduce_vars
:
false
,
},
output
:
{
comments
:
false
,
...
...
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