Skip to content

Instantly share code, notes, and snippets.

@arunoda
Created May 3, 2017 16:52
Show Gist options
  • Save arunoda/b4f8df6e2f12263aa6210265761aef67 to your computer and use it in GitHub Desktop.
Save arunoda/b4f8df6e2f12263aa6210265761aef67 to your computer and use it in GitHub Desktop.
Stop uglifying in Next.js
module.exports = {
webpack: function (cfg) {
cfg.plugins = cfg.plugins.filter(plugin => {
return plugin.constructor.name !== 'UglifyJsPlugin';
});
return plugin
}
}
@retrospct
Copy link

@sergiodxa maybe try this issue thread vercel/next.js#1855 (comment)
or this twitter post https://twitter.com/lukeed05/status/859532890463281156

Best I could find when looking into this as well. Best of luck.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment