birdofpreyru / react-starter

ReactJS Starter Kit
Other
2 stars 0 forks source link

Clean-up the usage of BABEL_ENV and NODE_ENV vars #2

Closed birdofpreyru closed 4 years ago

birdofpreyru commented 5 years ago

Run scripts now use BABEL_ENV as the switch of code mode, and NODE_ENV as the switch of runtime config mode. Instead NODE_ENV should be used as the switch of code mode, NODE_CONFIG_ENV as the switch of runtime config mode, and BABEL_ENV only for compilation (build) mode.