FountainJS / generator-fountain-webpack

Yeoman 'fountain' generator which handle the Webpack config
http://fountainjs.io
MIT License
4 stars 6 forks source link

Set babel conf for webpack tree shaking #50

Closed micaelmbagira closed 8 years ago

zckrs commented 8 years ago

Can we define a default env to avoid some BABEL_ENV = 'dev' and keep only one BABEL_ENV = 'production' ?

zckrs commented 8 years ago

https://babeljs.io/docs/usage/babelrc/

The env key will be taken from process.env.BABEL_ENV, when this is not available then it uses process.env.NODE_ENV if even that is not available then it defaults to "development".

If you replace in babelrc 'dev' by 'development' we don't need specify babel_env except for production

zckrs commented 8 years ago

Last point Maybe we should use a uniq env variable: NODE_ENV

micaelmbagira commented 8 years ago

👍