1
0
Fork 0
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:
Tim Neutkens 2017-03-06 17:53:00 +01:00 committed by Guillermo Rauch
parent 95bd7b70a0
commit bf9d34df37

View file

@ -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
}