# less-plugin-clean-css

> clean-css plugin for less.js

Latest version **1.6.0** (published 2024-07-15) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install less-plugin-clean-css
pnpm add less-plugin-clean-css
yarn add less-plugin-clean-css
bun add less-plugin-clean-css
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 1.6.0 |
| Published | 2024-07-15 |
| First published | 2014-09-13 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.10 |
| Dependencies | 1 |
| Unpacked size | 20.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 193 |
| Author | Luke Page |
| Maintainers | matthew-dean, cloudhead, lukeapage |
| Keywords | less plugins, cleancss, less compression |

## Links

- npm: https://www.npmjs.com/package/less-plugin-clean-css
- Repository: https://github.com/less/less-plugin-clean-css
- Homepage: https://lesscss.org
- Issues: https://github.com/less/less-plugin-clean-css/issues
- npm.io page: https://npm.io/package/less-plugin-clean-css

## Dependencies (1)

- [clean-css](https://npm.io/package/clean-css.md) 5.3.3

## Alternatives

- [lodash.startswith](https://npm.io/package/lodash.startswith.md) — 769.7K weekly downloads
- [@tarojs/service](https://npm.io/package/@tarojs/service.md) — 33.9K weekly downloads
- [io.extendreality.tilia.indicators.spatialtargets.unity](https://npm.io/package/io.extendreality.tilia.indicators.spatialtargets.unity.md) — 131 weekly downloads
- [@rtarojs/taro](https://npm.io/package/@rtarojs/taro.md) — 90 weekly downloads
- [node-branch-io](https://npm.io/package/node-branch-io.md) — 50 weekly downloads

## Recent versions

- 1.6.0 (latest) — 2024-07-15
- 1.5.1 — 2015-07-23
- 1.5.0 — 2015-02-02
- 1.4.0 — 2014-12-30
- 1.3.1 — 2014-12-20
- 1.3.0 — 2014-12-20
- 1.2.0 — 2014-11-12
- 1.1.0 — 2014-11-10
- 1.0.0 — 2014-10-09
- 0.0.3 — 2014-09-17
- 0.0.2 — 2014-09-13

## README

<p align="center">
    <a href="https://github.com/less/less-plugin-clean-css/actions?query=branch%3Amaster"><img src="https://github.com/less/less-plugin-clean-css/actions/workflows/build.yml/badge.svg?branch=master" alt="Github Actions CI"/></a>
    <a href="https://www.npmtrends.com/less-plugin-clean-css"><img src="https://img.shields.io/npm/dm/less-plugin-clean-css.svg?sanitize=true" alt="Downloads"></a>
    <a href="https://www.npmjs.com/package/less-plugin-clean-css"><img src="https://img.shields.io/npm/v/less-plugin-clean-css.svg?sanitize=true" /></a>
</p>

# less-plugin-clean-css

Compresses the css output from less using [clean-css](https://github.com/jakubpawlowicz/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](https://github.com/jakubpawlowicz/clean-css/tree/v3.0.1#how-to-use-clean-css-programmatically) 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

```js
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.

---
_Source: https://npm.io/package/less-plugin-clean-css · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
