Skip to content
This repository has been archived by the owner on Feb 17, 2024. It is now read-only.

Latest commit

 

History

History
36 lines (23 loc) · 1.6 KB

README.md

File metadata and controls

36 lines (23 loc) · 1.6 KB

minify-css

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.

Installation

npm install @projectwallace/minify-css

Usage

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?

Acknowledgements

  • Thanks to CSSTree for providing the necessary parser and the interfaces for our CSS Types (the bold elements in the list above)

Related projects