Closed kKen94 closed 4 years ago
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] : []
My bad, I should have removed "&&"
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: