# gulp-css-condense

> A gulp plugin for the CSS compressor that shows no mercy.

Latest version **1.1.2** (published 2015-02-17) · MIT license · 0 weekly downloads

## Install

```sh
npm install gulp-css-condense
pnpm add gulp-css-condense
yarn add gulp-css-condense
bun add gulp-css-condense
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.2 |
| Published | 2015-02-17 |
| First published | 2015-01-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Author | Ben Briggs |
| Maintainers | beneb |
| Keywords | minify, css, gulpplugin |

## Links

- npm: https://www.npmjs.com/package/gulp-css-condense
- Repository: https://github.com/ben-eb/gulp-css-condense
- Issues: https://github.com/ben-eb/gulp-css-condense/issues
- npm.io page: https://npm.io/package/gulp-css-condense

## Dependencies (2)

- [gulp-util](https://npm.io/package/gulp-util.md) ~3.0.1
- [css-condense](https://npm.io/package/css-condense.md) ^0.1.1

## Alternatives

- [style-dictionary](https://npm.io/package/style-dictionary.md) — 2.0M weekly downloads
- [postcss-merge-idents](https://npm.io/package/postcss-merge-idents.md) — 1.7M weekly downloads
- [@fontsource/noto-sans](https://npm.io/package/@fontsource/noto-sans.md) — 93.0K weekly downloads
- [uglifycss](https://npm.io/package/uglifycss.md) — 71.6K weekly downloads
- [mat4-interpolate](https://npm.io/package/mat4-interpolate.md) — 23.3K weekly downloads

## Recent versions

- 1.1.2 (latest) — 2015-02-17
- 1.1.1 — 2015-01-18
- 1.1.0 — 2015-01-18
- 1.0.0 — 2015-01-17

## README

# [gulp][gulp]-css-condense [![Build Status](https://travis-ci.org/ben-eb/gulp-css-condense.svg?branch=master)][ci] [![NPM version](https://badge.fury.io/js/gulp-css-condense.svg)][npm] [![Dependency Status](https://gemnasium.com/ben-eb/gulp-css-condense.svg)][deps]

> A gulp plugin for [the CSS compressor that shows no mercy][orig].

*If you have any difficulties with the output of this plugin, please use the
[css-condense tracker][bugs].*

Install via [npm](https://npmjs.org/package/gulp-css-condense):

```
npm install gulp-css-condense --save-dev
```

## Example

```js
var gulp = require('gulp');
var cssc = require('gulp-css-condense');

gulp.task('default', function() {
    return gulp.src('./main.css')
        .pipe(cssc())
        .pipe(gulp.dest('./out'));
});
```

## Options

### safe
Type: `Boolean`

If this is set to `true`, css-condense will not perform optimisations such as
selector and declaration consolidation ([the docs have more information][docs]).
Note that you can also choose which optimisations that you deem to be fit for
your build by passing them individually:

```js
var gulp = require('gulp');
var cssc = require('gulp-css-condense');

gulp.task('default', function() {
    return gulp.src('./main.css')
        .pipe(cssc({
            consolidateViaDeclarations: true,
            consolidateViaSelectors: false,
            consolidateMediaQueries: true
        }))
        .pipe(gulp.dest('./out'));
});
```

`options.safe` is just a convenience for specifying all of the above options as
`false`.

## Contributing

Pull requests are welcome. If you add functionality, then please add unit tests
to cover it.

## License

MIT © Ben Briggs

[bugs]: https://github.com/rstacruz/css-condense/issues
[ci]:   https://travis-ci.org/ben-eb/gulp-css-condense
[deps]: https://gemnasium.com/ben-eb/gulp-css-condense
[docs]: https://github.com/rstacruz/css-condense#the-dangerous-things-it-does
[gulp]: https://github.com/wearefractal/gulp
[npm]:  http://badge.fury.io/js/gulp-css-condense
[orig]: https://github.com/rstacruz/css-condense

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