Closed ericclemmons closed 8 years ago
Example:
if-env NODE_ENV=production && npm run webpack:prod || npm run webpack:dev
If webpack:prod fails, then webpack:dev runs. This isn't the desired behavior, as if-env only helps when everything works.
webpack:prod
webpack:dev
if-env
Is there a correct way for it?
This is what I've switched to using:
https://github.com/ericclemmons/per-env
Much better. I'll probably deprecate this project in favor of that.
Example:
If
webpack:prod
fails, thenwebpack:dev
runs. This isn't the desired behavior, asif-env
only helps when everything works.