feat: add CSS minification via lightningcss

- Cargo.toml: Add lightningcss 1.0.0-alpha.70 dep
- src/css.rs: New module with minify_css() function.
  Uses StyleSheet::parse() + minify() + to_css() pipeline.
  3 unit tests: whitespace removal, comment removal, selector merge.
- src/main.rs: Integrate minification into copy_static_assets().
  CSS files minified before writing; size delta logged.

Result: style.css 5670→4165 bytes (~27% smaller)
This commit is contained in:
Timothy DeHerrera
2026-01-24 21:07:56 -07:00
parent c145bf86b9
commit 7fa60d9b07
4 changed files with 893 additions and 14 deletions

View File

@@ -17,3 +17,6 @@ tree-sitter-bash = "0.23"
tree-sitter-highlight = "0.24"
tree-sitter-json = "0.24"
tree-sitter-rust = "0.23"
# CSS processing
lightningcss = "1.0.0-alpha.70"