gulp-minify-css is deprecated. Adding gulp-clean-css

This commit is contained in:
Israel Blancas 2016-04-12 01:38:30 +02:00 committed by Maximilian Hils
parent 228197185e
commit 9678240783
2 changed files with 3 additions and 3 deletions

View File

@ -10,7 +10,7 @@ var gulp = require("gulp");
var eslint = require('gulp-eslint');
var less = require("gulp-less");
var livereload = require("gulp-livereload");
var minifyCSS = require('gulp-minify-css');
var cleanCSS = require('gulp-clean-css');
var notify = require("gulp-notify");
var peg = require("gulp-peg");
var plumber = require("gulp-plumber");
@ -68,7 +68,7 @@ function styles(files, dev){
.pipe(dev ? plumber(handleError) : gutil.noop())
.pipe(sourcemaps.init())
.pipe(less())
.pipe(dev ? gutil.noop() : minifyCSS())
.pipe(dev ? gutil.noop() : cleanCSS())
.pipe(sourcemaps.write(".", {sourceRoot: fixLessSourceMaps}))
.pipe(gulp.dest(conf.static))
.pipe(livereload({auto: false}));

View File

@ -37,10 +37,10 @@
"browserify": "^13.0.0",
"eslint": "^2.2.0",
"gulp": "^3.9.1",
"gulp-clean-css": "^2.0.6",
"gulp-eslint": "^2.0.0",
"gulp-less": "^3.0.5",
"gulp-livereload": "^3.8.1",
"gulp-minify-css": "^1.2.4",
"gulp-notify": "^2.2.0",
"gulp-peg": "^0.2.0",
"gulp-plumber": "^1.1.0",