Socket
Socket
Sign inDemoInstall

postcss-minify-params

Package Overview
Dependencies
12
Maintainers
8
Versions
51
Alerts
File Explorer

Advanced tools

Install Socket

Protect your apps from supply chain attacks

Install

postcss-minify-params

Minify at-rule params with PostCSS

    6.0.3latest
    GitHub
    npm

Version published
Maintainers
8
Weekly downloads
11,154,257
increased by3.49%

Weekly downloads

Package description

What is postcss-minify-params?

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.

What are postcss-minify-params's main functionalities?

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}
});

Other packages similar to postcss-minify-params

Readme

Source

postcss-minify-params Build Status

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
    }
}

Usage

postcss([ require('postcss-minify-params') ])

See PostCSS docs for examples for your environment.

Contributors

See CONTRIBUTORS.md.

License

MIT © Bogdan Chadkin

Keywords

FAQs

Last updated on 24 Feb 2024

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc