mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-01-09 06:21:59 -05: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
2d9722e69c
commit
26771e9e0c
1 changed files with 2 additions and 2 deletions
|
@ -20,12 +20,12 @@ const base = {
|
|||
}
|
||||
}]
|
||||
},
|
||||
plugins: [
|
||||
plugins: process.env.NODE_ENV === 'production' ? [
|
||||
new webpack.optimize.UglifyJsPlugin({
|
||||
include: /\.min\.js$/,
|
||||
minimize: true
|
||||
})
|
||||
]
|
||||
] : []
|
||||
};
|
||||
|
||||
module.exports = [
|
||||
|
|
Loading…
Reference in a new issue