I attempted to reduce the size of my tailwindCSS by creating a script in my package.json:
"tw:prod":"NODE_ENV=production npx tailwindcss-cli@latest build ./src/css/tailwind.css -o ./public/css/tailwind.css",
However, I encountered the following error:
> 'NODE_ENV' is not recognized as an internal or external command,
> operable program or batch file. npm ERR! code ELIFECYCLE npm ERR!
> errno 1 npm ERR! <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="81eff5f6f1eef3f5c1b0afb1afb1">[email protected]</a> tw:prod: `NODE_ENV=production npx
> tailwindcss-cli@latest build ./src/css/tailwind.css -o
> ./public/css/tailwind.css` npm ERR! Exit status 1 npm ERR! npm ERR!
> Failed at the <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="ff918b888f908d8bbfced1cfd1cf">[email protected]</a> tw:prod script. npm ERR! This is probably
> not a problem with npm. There is likely additional logging output
> above.
>
> npm ERR! A complete log of this run can be found in: npm ERR!
> C:\Users\gabri\AppData\Roaming\npm-cache\_logs\2021-01-08T10_21_19_799Z-debug.log
This script is from tailwincss's documentation, so why am I facing this issue?