gulp-css-minify
v0.9.2
Published
A gulp plugin to minify css or less.
Downloads
961
Maintainers
Readme
gulp-css-minify
A gulp plugin to minify css or less.
Information
Installation
npm install gulp-css-minify
Basic Usage
var cssMinify = require('gulp-css-minify');
gulp.task('minifyCss', function () {
return gulp.src('./css/**/*.css')
.pipe(cssMinify())
.pipe(gulp.dest('./public/css'));
});
Use gulp-css-minify with gulp-less
var cssMinify = require('gulp-css-minify');
var less = require('gulp-less');
gulp.task('minifyCss', function () {
return gulp.src('./less/**/*.less')
.pipe(less())
.pipe(cssMinify())
.pipe(gulp.dest('./public/css'));
});