mini-css
v1.0.3
Published
Minifies a block of CSS or a CSS file
Downloads
31
Readme
miniCSS
A very simple CSS minifier that aggressively compresses CSS.
Usage
Import the node module:
`npm install mini-css`
Minify a css file:
var miniCSS = require("mini-css");
var minimized = miniCSS("* { color: #FF0000; }");
console.log(minimized); // *{color:#F00}
Minify a css file:
var minimized = miniCSS(null, __dirname + "/style.css");
Minify a css file and save it
var minimized = miniCSS(null, __dirname + "/style.css", true);