Warning
This repository is not maintained (it was never used actually). Please refer to format-css to minify your CSS.
Fast, small, zero-config library to minify CSS with basic rules. Simplicity, bundle size and runtime speed are more important than versatility and extensibility.
npm install @projectwallace/minify-css
import { minify } from "@projectwallace/minify-css";
let old_css = "/* Your CSS here */";
let new_css = minify(old_css);
TODO TODO TODO TODO TODO TODO TODO TODO TODO TODO TODO TODO TODO TODO TODO TODO Need more examples?
- Thanks to CSSTree for providing the necessary parser and the interfaces for our CSS Types (the bold elements in the list above)
- Minify CSS online - See this minifier in action online!
- CSS Analyzer - The best CSS analyzer that powers all analysis on projectwallace.com
- Format CSS The exact opposite of this library: fast, small, zero-config CSS formatter.