سلام متاسفانه سیستم اونجایی که میایم و یک NODE_ENV=development تعریف میکنیم رو نمیخونه
$ yarn run prod
yarn run v1.22.10
$ NODE_ENV=production webpack --mode production
'NODE_ENV' is not recognized as an internal or external command,
operable program or batch file.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
$ yarn dev
yarn run v1.22.10
$ NODE_ENV=development webpack --mode development
'NODE_ENV' is not recognized as an internal or external command,
operable program or batch file.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
console.log(process.env.NODE_ENV,"===="); // undefined ===