mini-css

1.0.3 • Public • Published

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);

Readme

Keywords

Package Sidebar

Install

npm i mini-css

Weekly Downloads

14

Version

1.0.3

License

MIT

Last publish

Collaborators

  • benlowry