altafino / react-webpack-5-tailwind-2

React 17 Boilerplate with Webpack 6, Tailwind 2, using babel, SASS/PostCSS, HMR, dotenv and an optimized production build
MIT License
295 stars 68 forks source link

Windows machine 'NODE_ENV' is not recognized as an internal or external command, #20

Closed Sensiblemnd closed 3 years ago

Sensiblemnd commented 3 years ago

When doing a yarn build

'NODE_ENV' is not recognized as an internal or external command,

Sensiblemnd commented 3 years ago

Fix: yarn add -D cross-env in package json

"build": "cross-env NODE_ENV=production webpack --config config/webpack.prod.js", "build-staging": "cross-env NODE_ENV=production webpack --config config/webpack.stag.js",

stefanwuthrich commented 3 years ago

tks @Sensiblemnd If you want, you can add a pull request or tell me to do