Open feychou opened 8 years ago
Setting the process.env.NODE_ENV this way https://github.com/christianalfoni/webpack-express-boilerplate/blob/4bd697889bf6502ee0706e6d22bc19e5af44a3fe/package.json#L24 does not seem to work on OS X or Linux. Replacing set with export does the trick. It'd be nice to make it work independently, though.
process.env.NODE_ENV
set
export
Its does not work? It is a very typical setup, works on my OS X. Its windows that has issues with that. But there was just a pull merged in using CROSSENV lib, does that fix the issue?
Setting the
process.env.NODE_ENV
this way https://github.com/christianalfoni/webpack-express-boilerplate/blob/4bd697889bf6502ee0706e6d22bc19e5af44a3fe/package.json#L24 does not seem to work on OS X or Linux. Replacingset
withexport
does the trick. It'd be nice to make it work independently, though.