Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
scratch-www
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
scratch-www
Commits
91c67568
Unverified
Commit
91c67568
authored
Mar 19, 2018
by
Ray Schamp
Committed by
GitHub
Mar 19, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1690 from as-com/uglify-development
Don't run UglifyJS unless it's a production build
parents
c5ea0579
aee9f0c6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
webpack.config.js
webpack.config.js
+7
-3
No files found.
webpack.config.js
View file @
91c67568
...
...
@@ -141,9 +141,6 @@ module.exports = {
{
from
:
'
static
'
},
{
from
:
'
intl
'
,
to
:
'
js
'
}
]),
new
webpack
.
optimize
.
UglifyJsPlugin
({
sourceMap
:
true
}),
new
webpack
.
DefinePlugin
({
'
process.env.NODE_ENV
'
:
'
"
'
+
(
process
.
env
.
NODE_ENV
||
'
development
'
)
+
'
"
'
,
'
process.env.SENTRY_DSN
'
:
'
"
'
+
(
process
.
env
.
SENTRY_DSN
||
''
)
+
'
"
'
,
...
...
@@ -155,4 +152,11 @@ module.exports = {
filename
:
'
js/common.bundle.js
'
})
])
.
concat
(
process
.
env
.
NODE_ENV
===
'
production
'
?
[
new
webpack
.
optimize
.
UglifyJsPlugin
({
compress
:
{
warnings
:
false
}
})
]
:
[])
};
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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