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

Popular posts from this blog

PHP DOM loadHTML() method unusual warning -

python - How to create jsonb index using GIN on SQLAlchemy? -

c# - TransactionScope not rolling back although no complete() is called -