Skip to content

Instantly share code, notes, and snippets.

@arunoda
Created May 3, 2017 16:52
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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
}
}
@sergiodxa
Copy link

@arunoda can this be an example of next.js? or can it be placed in the wiki?

@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