mirror of
https://github.com/scratchfoundation/scratch-render.git
synced 2025-08-14 15:29:17 -04:00
Only uglify if building for production.
Uglify was trying to run always, including the dev-server output, which included es6 that broke uglifier.
This commit is contained in:
parent
77e3d63da9
commit
067eb1940d
1 changed files with 3 additions and 4 deletions
|
@ -27,13 +27,12 @@ const base = {
|
|||
}
|
||||
]
|
||||
},
|
||||
plugins: [
|
||||
plugins: process.env.NODE_ENV === 'production' ? [
|
||||
new webpack.optimize.UglifyJsPlugin({
|
||||
include: /\.min\.js$/,
|
||||
minimize: true,
|
||||
sourceMap: true
|
||||
minimize: true
|
||||
})
|
||||
]
|
||||
] : []
|
||||
};
|
||||
|
||||
module.exports = [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue