# gulp-crass

> Css optimize

Latest version **0.2.2** (published 2017-10-23) · MIT license · 0 weekly downloads

## Install

```sh
npm install gulp-crass
pnpm add gulp-crass
yarn add gulp-crass
bun add gulp-crass
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.2 |
| Published | 2017-10-23 |
| First published | 2014-02-22 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | c0b41 |
| Maintainers | cobaimelan |
| Keywords | gulpplugin, optimize, css |

## Links

- npm: https://www.npmjs.com/package/gulp-crass
- Repository: https://github.com/c0b41/gulp-crass
- Issues: https://github.com/c0b41/gulp-crass/issues
- npm.io page: https://npm.io/package/gulp-crass

## Dependencies (4)

- [crass](https://npm.io/package/crass.md) *
- [csswring](https://npm.io/package/csswring.md) ^6.0.1
- [through2](https://npm.io/package/through2.md) ^2.0.3
- [gulp-util](https://npm.io/package/gulp-util.md) ^3.0.4

## 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

- 0.2.2 (latest) — 2017-10-23
- 0.2.1 — 2017-10-23
- 0.2.0 — 2015-04-03
- 0.1.2 — 2015-01-25
- 0.1.1 — 2015-01-24
- 0.1.0 — 2014-11-05
- 0.0.1 — 2014-02-22

## README

# [gulp](https://github.com/gulpjs/gulp)-crass  



[![Travis Build Status](http://img.shields.io/travis/c0b41/gulp-crass.svg?style=flat-square)](https://travis-ci.org/c0b41/gulp-crass) [![Circle Build Status](https://img.shields.io/circleci/project/ayhanc0b41kuru/gulp-crass.svg?style=flat-square)](https://circleci.com/gh/c0b41/gulp-crass) [![Appveyor Build Status](https://img.shields.io/appveyor/ci/c0b41/gulp-crass.svg?style=flat-square)](https://ci.appveyor.com/project/c0b41/gulp-crass) [![Build Status](https://img.shields.io/david/c0b41/gulp-crass.svg?style=flat-square)](https://david-dm.org/c0b41/gulp-crass)

> Css files by optimizing utility organizes and removes spaces

Uses the [crass](https://github.com/mattbasta/crass) library.

## How It Works
`/path/to/file.css`:
```css
b, c, a {
    third: rgba(255, 255, 255, 0.9);
    second: abc;
    first: 50%;
}
```



Output:
```css
a, b, c {
    first: 50%;
    second: abc;
    third: hsla(0, 0%, 100%, 0.9);
}

```


## Install

Install with [npm](https://npmjs.org/package/gulp-crass)

```
npm install --save-dev gulp-crass
```


## Usage

```js
gulp.task('default', function() {
  return gulp.src('./exam/*.css')
        .pipe(crass())
        .pipe(gulp.dest('build/'));;
});
```

With options:

```js
gulp.task('default', function() {
  return gulp.src('./exam/*.css')
        .pipe(crass({pretty:false}))
        .pipe(gulp.dest('build/'));;
});
```




## API

### crass(options)


#### options.pretty

Type: `Boolean`
Default: `true`


#### options.sourceMap && options.sourcemap

Type: `Boolean`
Default: `false`

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