Skip to content

Automatically set NODE_ENV to production when build #1912

@gluons

Description

@gluons

What problem does this feature solve?

Currently, I have to add cross-env into build script every time. (cross-env NODE_ENV=production vue-cli-service build).
If I don't add it, build script will not minify files and extract CSS. (My laptop set NODE_ENV to development.)

What does the proposed API look like?

It should be great if vue-cli automatically define NODE_ENV to production when use vue-cli-service build with production mode. (It's default)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions