JSPM

css-simple-minifier

2.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 96
  • Score
    100M100P100Q77016F

A CSS minifier that's tiny and very fast.

Package Exports

  • css-simple-minifier

Readme

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