The build script is not purging my styles (Windows OS). so i changed a little bit of scripts and now it's working fine for me.
"scripts": {
"build:css": "postcss src/styles/tailwind.scss -o src/styles/main.scss",
"watch:css": "postcss src/styles/tailwind.scss -o src/styles/main.scss --watch",
"react-scripts:start": "sleep 5 && react-scripts start",
"react-scripts:build": "react-scripts build",
"start": "cross-env NODE_ENV=development run-p watch:css react-scripts:start",
"build": "cross-env NODE_ENV=production run-s build:css react-scripts:build",
"test": "react-scripts test",
"eject": "react-scripts eject"
}
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
The build script is not purging my styles (Windows OS). so i changed a little bit of scripts and now it's working fine for me.
"scripts": {
"build:css": "postcss src/styles/tailwind.scss -o src/styles/main.scss",
"watch:css": "postcss src/styles/tailwind.scss -o src/styles/main.scss --watch",
"react-scripts:start": "sleep 5 && react-scripts start",
"react-scripts:build": "react-scripts build",
"start": "cross-env NODE_ENV=development run-p watch:css react-scripts:start",
"build": "cross-env NODE_ENV=production run-s build:css react-scripts:build",
"test": "react-scripts test",
"eject": "react-scripts eject"
}