atom-gulp-control icon indicating copy to clipboard operation
atom-gulp-control copied to clipboard

NODE_ENV is inherited from atom process...always 'production'

Open jrop opened this issue 8 years ago • 2 comments

First of all, thanks for the awesome plugin!

When I run gulp tasks I will run production builds based on the NODE_ENV environment variable. It would be nice if this was configurable, because the default inherited from the atom process is always "production". When I am developing in atom, I usually want to run development builds.

jrop avatar Feb 02 '17 00:02 jrop

Awesome Plugin!! :) Sometimes, when i switch between both QA and development environment. if there is way to give the what type of environment during gulp build then it would be more helpful.

maniR1990 avatar Feb 03 '17 08:02 maniR1990

Hi! it's really great, thx a lot. But i have the same issue. it seams it runs every task with --production flag. For testing i placed "console.log(elixir.config.production);" in my gulpfile.js. When running "gulp default" in my terminal it returns "false" which is ok. But wenn i run the "default"-Task via gulp-control it always returns "true" which is not ok for me. would be great if you have a solution or some tipps. THX

mamaretti avatar Mar 10 '17 10:03 mamaretti