cssnano

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

Github星跟踪图

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

NPM version
Build Status
codecov
Gitter

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

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 colors & 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!

Contributing

See CONTRIBUTING.md.

License

MIT © Ben Briggs

主要指标

概览
名称与所有者cssnano/cssnano
主编程语言CSS
编程语言JavaScript (语言数: 3)
平台
许可证MIT License
所有者活动
创建于2015-04-14 16:23:09
推送于2025-05-22 19:38:24
最后一次提交2025-05-22 21:38:21
发布数813
最新版本名称stylehacks@7.0.5 (发布于 2025-05-06 15:46:42)
第一版名称v1.0.0 (发布于 2015-04-14 17:26:25)
用户参与
星数4.9k
关注者数48
派生数322
提交数2.6k
已启用问题?
问题数741
打开的问题数93
拉请求数690
打开的拉请求数6
关闭的拉请求数252
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?