mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-03-15 01:39:59 -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
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({
|
new webpack.optimize.UglifyJsPlugin({
|
||||||
include: /\.min\.js$/,
|
include: /\.min\.js$/,
|
||||||
minimize: true
|
minimize: true
|
||||||
})
|
})
|
||||||
]
|
] : []
|
||||||
};
|
};
|
||||||
|
|
||||||
module.exports = [
|
module.exports = [
|
||||||
|
|
Loading…
Reference in a new issue