diff --git a/config/webpack.library.js b/config/webpack.library.js index 4435486e..262fd7bf 100644 --- a/config/webpack.library.js +++ b/config/webpack.library.js @@ -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: { diff --git a/config/webpack.prod.js b/config/webpack.prod.js index 4eed4544..e9ae9420 100644 --- a/config/webpack.prod.js +++ b/config/webpack.prod.js @@ -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: