- 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)
23 lines
478 B
TOML
23 lines
478 B
TOML
[package]
|
|
description = "Bespoke static site compiler for nrd.sh"
|
|
edition = "2024"
|
|
license = "MIT"
|
|
name = "nrd-sh"
|
|
version = "0.1.0"
|
|
|
|
[dependencies]
|
|
gray_matter = "0.2"
|
|
maud = "0.26"
|
|
pulldown-cmark = "0.12"
|
|
thiserror = "2"
|
|
walkdir = "2"
|
|
|
|
# Syntax highlighting
|
|
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"
|