christianalfoni / webpack-express-boilerplate

A boilerplate for running a Webpack workflow in Node express
MIT License
1.4k stars 292 forks source link

NODE_ENV not set for OS X #40

Open feychou opened 8 years ago

feychou commented 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.

christianalfoni commented 8 years ago

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?