javascript - When running webpack, in my webpack.config.js, all values of process.env are set to undefined -
i'm trying set webpack.config.js
detects value of node_env
, minifies output (or not) based on value. outputting minified versions, ran node-debug webpack
see going on.
in webpack.config.js
, process.env
defined object
bunch of values, properties listed undefined
, , node_env
isn't 1 of values of process.env
.
ideas?
a little context
i'm creating batch script run 2 instances of webpack create .js
, .min.js
files simultaneously:
set node_env=development start webpack -c --progress -w set node_env=production start webpack -c --progress -w
however, debug it, ran separate commands:
set node_env=development node-debug webpack -c --progress
thanks!
Comments
Post a Comment