Skip to content
This repository has been archived by the owner on Jan 6, 2021. It is now read-only.

Angular compilation problem #239

Closed
kKen94 opened this issue May 15, 2020 · 1 comment
Closed

Angular compilation problem #239

kKen94 opened this issue May 15, 2020 · 1 comment

Comments

@kKen94
Copy link

kKen94 commented May 15, 2020

In angular compilation NODE_ENV is undefined with this configuration.
I have my own webpack to extend basic configuration

Angular script:

"build:prod": "cross-env NODE_ENV=prod && ng build --prod"

webpack.config.js:

...process.env.NODE_ENV === 'prod'
              ? [purgecss]
              : []
@kKen94
Copy link
Author

kKen94 commented May 15, 2020

My bad,
I should have removed "&&"

@kKen94 kKen94 closed this as completed May 15, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant