Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
L

less-plugin-clean-css

> 编程语言
Open source

Post-process and compress CSS using clean-css.

193 stars0 likes4 views
WebsiteGitHub

About

Post-process and compress CSS using clean-css.

less-plugin-clean-css

Compresses the css output from less using clean-css.

lessc usage

First of all install less via

bash
npm install -g less

then install the less-plugin-clean-css

bash
npm install -g less-plugin-clean-css

and then on the command line,

bash
lessc file.less --clean-css="--s1 --advanced --compatibility=ie8"

See clean-css for the available command options - the only differences are advanced and rebase which we default to false, because it is not always entirely safe.

Programmatic usage

javascript
var LessPluginCleanCSS = require('less-plugin-clean-css'),
    cleanCSSPlugin = new LessPluginCleanCSS({advanced: true});
less.render(lessString, {plugins: [cleanCSSPlugin]})
    .then(

Browser usage

Browser usage is not supported at this time.

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

JavaScriptless-plugin

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 18, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言