Disable function inlining

Work around for https://github.com/mishoo/UglifyJS2/issues/2842
This commit is contained in:
Jordan Eldredge 2018-04-25 09:28:21 -07:00
parent b112e9188d
commit 8876e36658
2 changed files with 14 additions and 2 deletions

View file

@ -42,7 +42,13 @@ module.exports = {
}),
new UglifyJsPlugin({
include: /\.min\.js$/,
parallel: true
parallel: true,
uglifyOptions: {
compress: {
// Workaround: https://github.com/mishoo/UglifyJS2/issues/2842
inline: false
}
}
})
],
entry: {

View file

@ -22,7 +22,13 @@ const config = merge(common, {
new UglifyJsPlugin({
// TODO: Is this needed with the devtool setting above?
sourceMap: true,
parallel: true
parallel: true,
uglifyOptions: {
compress: {
// Workaround: https://github.com/mishoo/UglifyJS2/issues/2842
inline: false
}
}
}),
new workboxPlugin.GenerateSW({
// Note: CloudFlare is configued to not cache this file, as suggested in the: