🔨 refactor builds

* Removed postcss and postcss-cli because it’s not needed in latest versions of Tailwind cli.
* Now using tailwind cli for dev and build
* Added cssnano.  For now I’m not seeing much if any reduction in size but as it grows we might.
This commit is contained in:
Greg Newman
2022-11-17 08:51:57 -05:00
parent c795dbb989
commit 223c69a897
4 changed files with 411 additions and 2255 deletions

View File

@@ -6,16 +6,15 @@
"author": "Greg Newman <greg@gregnewman.org>",
"license": "MIT",
"scripts": {
"dev": "postcss frontend/styles.css -w -d static/css/ --verbose",
"build": "NODE_ENV=production postcss frontend/styles.css -d static/css/ --verbose"
"dev": "tailwindcss -i frontend/styles.css -o static/css/styles.css --watch",
"build": "NODE_ENV=production tailwindcss -i frontend/styles.css -o static/css/styles.css --minify"
},
"dependencies": {
"@lottiefiles/lottie-js": "^0.4.1",
"@tailwindcss/forms": "^0.5.3",
"alpinejs": "^3.10.2",
"autoprefixer": "^10.4.12",
"postcss": "^8.4.18",
"postcss-cli": "^10.0.0",
"cssnano": "^5.1.14",
"tailwindcss": "^3.2.1"
}
}