Home

Issue: 250

How could i disable UglifyJs in the client webpack config?

[issue link]

Hi,

I’m using Nuxt for my current project and it’s working kite well, but today got a problem trying to running it at production.

How could i disable the Uglify plugin when the NODE_ENV is production?

I’m trying to use Babili for minify code because my code is in ES6-ES7 and uglify does not support it for now. But it keeps calling the uglify plugin, throwing code 1 error and stopping the build. The only workarounds i know is set the NODE_ENV in developtment (not recommended) or code in ES2015.

Thanks.

This question is available on Nuxt.js community (#c216)