Answer the question
In order to leave comments, you need to log in
Why is process.env.NODE_END not being set?
I have the following code in my webpack.config.js (and another one too, but that's the point):
//Mode configuration
const isDev = process.env.NODE_END === "development";
console.log(process.env.NODE_END);
"scripts": {
"dev": "set NODE_ENV=development && webpack-dev-server --color --open --mode development",
"build": "cross-env NODE_ENV=production webpack --mode production"
},
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question