Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/pdehaan/gulp-cssmin

minify css using gulp
https://github.com/pdehaan/gulp-cssmin

Last synced: 2 months ago
JSON representation

minify css using gulp

Awesome Lists containing this project

README

        

# gulp-cssmin

[![Build Status](https://travis-ci.org/chilijung/gulp-cssmin.png?branch=master)](https://travis-ci.org/chilijung/gulp-cssmin)

minify css using gulp.

## Install

Install with [npm](https://npmjs.org/package/gulp-cssmin)

```
npm install --save-dev gulp-cssmin
```

## Example

```js
var gulp = require('gulp');
var cssmin = require('gulp-cssmin');

gulp.task('default', function () {
gulp.src('src/**/*.css')
.pipe(cssmin())
.pipe(rename({suffix: '.min'}))
.pipe(gulp.dest('dist'));
});
```

## API

### cssmin(options)

See the css-min [options](https://github.com/GoalSmashers/clean-css).

## Inspired by

- https://github.com/sindresorhus/gulp-imagemin

- https://github.com/gruntjs/grunt-contrib-cssmin

## License

MIT [@chilijung](http://github.com/chilijung)