![Introducing Enhanced Alert Actions and Triage Functionality](https://cdn.sanity.io/images/cgdhsj6q/production/fe71306d515f85de6139b46745ea7180362324f0-2530x946.png?w=800&fit=max&auto=format)
Product
Introducing Enhanced Alert Actions and Triage Functionality
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
postcss-minify-params
Advanced tools
Package description
The postcss-minify-params package is a tool used to minify parameters in CSS. It's a plugin for PostCSS, a tool for transforming CSS with JavaScript. This package helps in reducing the size of CSS files by optimizing the parameters passed to functions and mixins within the CSS, which can lead to faster load times for web pages.
Minifying CSS function parameters
This feature allows the minification of parameters passed to CSS functions, such as `transition`, `transform`, etc., by removing unnecessary whitespace and optimizing numerical values.
const postcss = require('postcss');
const minifyParams = require('postcss-minify-params');
postcss([minifyParams()]).process('a{transition: all 0.5s ease-in-out;}').then(result => {
console.log(result.css);
// Output: a{transition:all .5s ease-in-out}
});
cssnano is a modular minifier that includes postcss-minify-params as one of its optimizations. It provides a full suite of minification features, including reducing CSS size by optimizing a variety of different aspects of the CSS file, not just parameters.
clean-css is another CSS minifier that can perform optimizations similar to postcss-minify-params. It focuses on a wide range of CSS optimizations and is known for its performance and reliability.
csso is a CSS minifier with structural optimizations. While it also minifies parameters, it goes further by restructuring CSS to reduce the size of the file and improve load times.
Readme
Minify at-rule params with PostCSS.
@media only screen and ( min-width: 400px, min-height: 500px ) {
h2{
color:blue
}
}
@media only screen and (min-width:400px,min-height:500px) {
h2{
color:blue
}
}
postcss([ require('postcss-minify-params') ])
See PostCSS docs for examples for your environment.
MIT © Bogdan Chadkin
FAQs
Minify at-rule params with PostCSS
We found that postcss-minify-params 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 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.
Product
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
Security News
Polyfill.io has been serving malware for months via its CDN, after the project's open source maintainer sold the service to a company based in China.
Security News
OpenSSF is warning open source maintainers to stay vigilant against reputation farming on GitHub, where users artificially inflate their status by manipulating interactions on closed issues and PRs.