diff gulpfile.js @ 646:87267392a5c1

cm: Update node module versions.
author Ludovic Chabant <ludovic@chabant.com>
date Sun, 14 Feb 2016 23:58:35 -0800
parents ccd328d0881f
children c1a94e1beb9d
line wrap: on
line diff
--- a/gulpfile.js	Sun Feb 14 23:58:23 2016 -0800
+++ b/gulpfile.js	Sun Feb 14 23:58:35 2016 -0800
@@ -5,7 +5,7 @@
     sass = require('gulp-sass'),
     sourcemaps = require('gulp-sourcemaps'),
     rename = require('gulp-rename'),
-    minify = require('gulp-minify-css'),
+    cssnano = require('gulp-cssnano'),
     concat = require('gulp-concat'),
     uglify = require('gulp-uglify');
 
@@ -19,9 +19,9 @@
             includePaths: [
                 'bower_components/bootstrap-sass/assets/stylesheets',
                 'bower_components/Ionicons/scss']}))
+        .pipe(cssnano())
         //.pipe(sourcemaps.write())
         .pipe(rename({suffix: '.min'}))
-        .pipe(minify())
         .pipe(gulp.dest('foodtruck/static/css'));
 });
 gulp.task('sass:watch', function() {
@@ -43,9 +43,9 @@
             ])
         .pipe(sourcemaps.init())
         .pipe(concat('foodtruck.js'))
+        //.pipe(uglify())
         .pipe(sourcemaps.write())
         .pipe(rename({suffix: '.min'}))
-        //.pipe(uglify())
         .pipe(gulp.dest('foodtruck/static/js'));
 });
 gulp.task('js:watch', function() {