From bf9d34df37e433f7202a6034027a9384cb3f8d6e Mon Sep 17 00:00:00 2001 From: Tim Neutkens Date: Mon, 6 Mar 2017 17:53:00 +0100 Subject: [PATCH] Disable uglify the pretty way (#1351) --- examples/using-preact/next.config.js | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/examples/using-preact/next.config.js b/examples/using-preact/next.config.js index 02e8a329..5a7cd53f 100644 --- a/examples/using-preact/next.config.js +++ b/examples/using-preact/next.config.js @@ -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 }