css-simple-minifier
TypeScript icon, indicating that this package has built-in type declarations

2.0.0 • Public • Published

CSS Simple Minifier

A CSS minifier that's tiny and very fast.

It basically just removes most unnecessary whitespace. Compared to a full-blown minifier it does 95% of the job in 5% of the time.

Install

npm install --save css-simple-minifier

Usage

import minify from 'css-simple-minifier';

const css = `
  .foo,
  .bar {
    color: red;
  }

  .baz {
    color: blue;
  }
`;

minify ( css ); // => '.foo,.bar{color: red;}.baz{color: blue;}'

License

MIT © Fabio Spampinato

Package Sidebar

Install

npm i css-simple-minifier

Weekly Downloads

262

Version

2.0.0

License

none

Unpacked Size

3.83 kB

Total Files

11

Last publish

Collaborators

  • fabiospampinato