JSPM

  • Created
  • Published
  • Downloads 11619052
  • Score
    100M100P100Q233310F
  • License MIT

Minify colors in your CSS files with PostCSS and colormin.

Package Exports

  • postcss-colormin

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (postcss-colormin) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

postcss-colormin Build Status NPM version Dependency Status

Minify colors in your CSS files with PostCSS and colormin.

Install

With npm do:

npm install postcss-colormin --save

Example

var postcss = require('postcss')
var colormin = require('postcss-colormin');

var css = 'h1 {color: rgba(255, 0, 0, 1)}';
console.log(postcss(colormin()).process(css).css);

// => 'h1 {color:red}'

For more examples see the tests.

Contributing

Pull requests are welcome. If you add functionality, then please add unit tests to cover it.

License

MIT © Ben Briggs