DEV Community

loading...

Discussion on: Tailwind for Create-React-App Cheat Sheet

Collapse
peyman98 profile image
Peyman • Edited

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"
}