In my webpack.config.js I have the following code(and other too, but the point is only that):
const isDev = process.env.NODE_END === "development";
In package.the following json script to run:
"dev": "set NODE_ENV=development && webpack-dev-server --color --open --mode development",
"build": "cross-env NODE_ENV=production webpack --mode production"
But in the console I get underfined. Although set NODE_ENV to development.
Tried to do it through cross-env. Same problem.
What could be the problem?