Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/pdehaan/gulp-cssmin
- Owner: pdehaan
- Created: 2014-03-03T07:44:40.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2022-11-01T19:56:59.000Z (about 2 years ago)
- Last Synced: 2023-04-10T13:52:17.453Z (over 1 year ago)
- Language: JavaScript
- Size: 93.8 KB
- Stars: 1
- Watchers: 3
- Forks: 11
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
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)