Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
postcss-csso
Advanced tools
PostCSS plugin to minify CSS using CSSO.
Under the hood the plugin converts PostCSS
AST into CSSO
format, optimises it and converts back. The plugin uses either input PostCSS
tree nodes or their clones on reverse convertation. So shape of original PostCSS
tree nodes persists the same after compression in most cases (e.g. properties added by other plugins isn't lost). Also this allows to generate source map correctly.
Performance of the plugin is approximately the same as CSSO
has (see CSSO
numbers in comparison table).
If you have any difficulties with the output of this plugin, please use the CSSO tracker.
npm install postcss-csso
var postcss = require('postcss');
var csso = require('postcss-csso');
postcss([
csso
])
.process('.a { color: #FF0000; } .b { color: rgba(255, 0, 0, 1) }')
.then(function(result) {
console.log(result.css);
// .a,.b{color:red}
});
Plugin accepts the same options as minify()
method of CSSO with no any changes.
postcss([
csso({ restructure: false })
])
.process('.a { color: #FF0000; } .b { color: rgba(255, 0, 0, 1) }')
.then(function(result) {
console.log(result.css);
// .a{color:red}.b{color:red}
});
MIT
1.1.1 (April 12, 2016)
FAQs
PostCSS plugin to minify CSS using CSSO
The npm package postcss-csso receives a total of 23,855 weekly downloads. As such, postcss-csso popularity was classified as popular.
We found that postcss-csso demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.