Skip to content

Commit 60dd76a

Browse files
committed
fix: use cssnano for CSS minification via PostCSS, bypassing Parcel optimizer segfault
- add cssnano to .postcssrc for in-pipeline minification (keeps Tailwind and comment stripping) - update build process to skip Parcel's --minify step, avoiding lightningcss crash on Node 22/Linux - ensures Vercel and local builds both produce minified CSS without breaking Tailwind
1 parent a835c4d commit 60dd76a

3 files changed

Lines changed: 582 additions & 1 deletion

File tree

.postcssrc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"plugins": {
33
"postcss-discard-comments": { "removeAll": true },
4-
"@tailwindcss/postcss": {}
4+
"@tailwindcss/postcss": {},
5+
"cssnano": { "preset": ["default", { "discardComments": { "removeAll": true } }] }
56
}
67
}

0 commit comments

Comments
 (0)