Angular compilation problem
kKen94 opened this issue · comments
Nicola Taddei commented
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]
: []
Nicola Taddei commented
My bad,
I should have removed "&&"