Skip to main content

cssnano

Use this skill when the user wants to optimize and minify CSS for production — reduce file size, merge rules, drop duplicates, and compress colors via PostCSS.

来源信息

仓库
javimosch/supercli
最近来源活动
2026年5月22日 22:09
检测到的 SKILL.md 语言
英语
星标
51
Forks
7

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
cssnano
description
Use this skill when the user wants to optimize and minify CSS for production — reduce file size, merge rules, drop duplicates, and compress colors via PostCSS.
# cssnano Plugin cssnano minifies and optimizes CSS using PostCSS plugins. Reduces file size by removing whitespace, merging rules, and normalizing values. ## Commands - `cssnano _ _ <args>` — Passthrough ## Usage Examples - "minify styles.css to styles.min.css" - "optimize all CSS files in a directory" - "preview optimization results without writing" - "merge multiple CSS files and optimize" ## Installation ```bash npm install -g cssnano ``` ## Key Features - Whitespace and comment removal - Rule merging and consolidation - Duplicate selector elimination - Color compression and normalization - Value optimization (z-index, calc, etc.) - Font-face and keyframe deduplication - PostCSS plugin ecosystem support - Configurable optimization presets
在 GitHub 查看