postcss-colormin
Advanced tools
Weekly downloads
Readme
Minify colors in your CSS files with PostCSS.
With npm do:
npm install postcss-colormin --save
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.
See the PostCSS documentation for examples for your environment.
See CONTRIBUTORS.md.
MIT © Ben Briggs
FAQs
Minify colors in your CSS files with PostCSS.
The npm package postcss-colormin receives a total of 7,856,969 weekly downloads. As such, postcss-colormin popularity was classified as popular.
We found that postcss-colormin demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 8 open source maintainers collaborating on the project.
Did you know?
Socket installs a GitHub app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.