mirror of
https://github.com/terribleplan/next.js.git
synced 2024-01-19 02:48:18 +00:00
Disable uglify the pretty way (#1351)
This commit is contained in:
parent
95bd7b70a0
commit
bf9d34df37
|
@ -13,13 +13,7 @@ module.exports = {
|
|||
|
||||
// Disable uglify. This has been fixed in https://github.com/developit/preact-compat/issues/155.
|
||||
// Can be removed once there is a new preact-compat release.
|
||||
config.plugins = config.plugins.filter((plugin) => {
|
||||
if (plugin.constructor.name === 'UglifyJsPlugin') {
|
||||
return false
|
||||
} else {
|
||||
return true
|
||||
}
|
||||
})
|
||||
config.plugins = config.plugins.filter((plugin) => (plugin.constructor.name !== 'UglifyJsPlugin'))
|
||||
|
||||
return config
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue