Skip to content

How could i disable UglifyJs in the client webpack config? #250

Closed
@kartojal

Description

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)

Activity

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

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions