mirror of
https://github.com/captbaritone/webamp.git
synced 2026-07-20 16:49:52 +00:00
Disable function inlining
Work around for https://github.com/mishoo/UglifyJS2/issues/2842
This commit is contained in:
parent
b112e9188d
commit
8876e36658
2 changed files with 14 additions and 2 deletions
|
|
@ -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: {
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue