Add uglifyjs plugin (#2070)
* Add uglifyjs plugin and replace -p flag with --env.production * Add uglifyjs plugin * Configure UglifyJsPlugin to drop console and prevent eslint error * Turn off no-console rule because uglifyjs plugin drops it in prod
This commit is contained in:
@@ -32,7 +32,7 @@ module.exports = {
|
||||
]
|
||||
},
|
||||
"rules": {
|
||||
"no-console": process.env.NODE_ENV === 'production' ? 2 : 0,
|
||||
"no-console": 0,
|
||||
"comma-dangle": [
|
||||
"error",
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user