node.js - Can't set process.env.NODE_ENV to production in a project -
in gulpfile.js
have dev
variable has default value of true
, means generate .tmp
folder output files stored, since it's in development
mode. if production
, generate dist
folder output files. in command line, in project directory, typed set node_env=production
. when run gulp
, still generates .tmp
folder instead of dist
. it's still in development
mode. why isn't change happening? should make config file in case?
Comments
Post a Comment