npm.io
9.0.8 • Published 3d ago

postcss-minify-selectors

Licence
MIT
Version
9.0.8
Deps
3
Size
238 kB
Vulns
0
Weekly
0
Stars
5.0K


cssnano


A modular CSS minifier, built on top of the PostCSS ecosystem.

Backers on Open Collective Sponsors on Open Collective NPM version Build Status codecov Gitter

cssnano is a modern, modular CSS compression tool written on top of the PostCSS ecosystem, which allows us to use a lot of powerful features in order to minify CSS.

Our preset system allow you to load cssnano in a different configuration depending on your needs; the default preset performs safe transforms, whereas the advanced preset performs more aggressive transforms that are safe only when your site meets the requirements; but regardless of the preset you choose, we handle more than whitespace transforms!

Optimisations range from compressing colours & removing comments, to discarding overridden at-rules, normalising unicode-range descriptors, even mangling gradient parameters for a smaller output value! In addition, where it's made sense for a transform, we've added Browserslist to provide different output depending on the browsers that you support.

For further details check out the website:

You can now try cssnano online!

Semantic Versioning Policy

The guiding principle is that a page should render the same with the minified CSS as with the original CSS. So cssnano should not break a working stylesheet, and should also not fix a broken stylesheet, because it makes it harder for developers to debug the application. This matters especially when the stylesheet is only minified for the production build.

Major releases

A major release indicates that cssnano requires a different runtime or configuration to keep working, or when its output is likely to be parsed incorrectly by browsers that were previously supported. This includes changes to the supported Node.js versions and incompatible configuration changes.

Minor releases

This is for releases that might introduce changes to the stylesheet where there were none previously. This includes introducing a new minification, for example merging, which can restructure the output, or removing a transformation. These changes should not alter browser support for the CSS that cssnano outputs.

Patch releases

These are bug fixes in existing minifications, or internal changes like refactorings or dependency changes.

Contributing

See CONTRIBUTING.md.

Contributors

This project exists thanks to all the people who contribute. [Contribute].

Backers

Thank you to all our backers! [Become a backer]

Sponsors

Support this project by becoming a sponsor. Your logo will show up here with a link to your website. [Become a sponsor]

License

MIT Ben Briggs

Keywords