Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allow build script to use existing NODE_ENV value #480

Merged
merged 1 commit into from
Mar 4, 2023

Conversation

Maikel-Nait
Copy link

in some special projects, we have both "development" builds, and "production" builds. With this PR, the build script will use the webpack production config only if the NODE_ENV is set to "production" (which is the default, if no value has been assigned). In any other cases, it will use the webpack development config.

@dilanx dilanx linked an issue Dec 21, 2022 that may be closed by this pull request
@dilanx dilanx merged commit 9685d8c into dilanx:main Mar 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The npm script build command cannot modify NODE_ENV
2 participants