diff --git a/lib/gulpfile.babel.js b/lib/gulpfile.babel.js index d9346c0..47c2689 100644 --- a/lib/gulpfile.babel.js +++ b/lib/gulpfile.babel.js @@ -6,10 +6,10 @@ import browserify from 'browserify' import gulp from 'gulp' import autoprefixer from 'gulp-autoprefixer' import changed from 'gulp-changed' +import nano from 'gulp-cssnano' import fileinclude from 'gulp-file-include' import htmlmin from 'gulp-htmlmin' import imagemin from 'gulp-imagemin' -import minify from 'gulp-minify-css' import plumber from 'gulp-plumber' import sass from 'gulp-sass' import sourcemaps from 'gulp-sourcemaps' @@ -50,7 +50,7 @@ gulp.task('sass', () => { .pipe(sourcemaps.init()) .pipe(sass()) .pipe(autoprefixer({ browsers: [ 'last 2 versions', 'ie >= 9', 'Android >= 4.1' ] })) - .pipe(minify()) + .pipe(nano({ safe: true })) .pipe(sourcemaps.write('./maps', { addComment: false })) .pipe(gulp.dest('dist')) }) diff --git a/lib/package.json b/lib/package.json index 56d0957..7a4a595 100644 --- a/lib/package.json +++ b/lib/package.json @@ -14,10 +14,10 @@ "gulp": "*", "gulp-autoprefixer": "*", "gulp-changed": "*", + "gulp-cssnano": "*", "gulp-file-include": "*", "gulp-htmlmin": "*", "gulp-imagemin": "*", - "gulp-minify-css": "*", "gulp-plumber": "*", "gulp-sass": "*", "gulp-sourcemaps": "*", diff --git a/package.json b/package.json index 0bc0a70..3aea2eb 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "outset", - "version": "3.3.0", + "version": "3.3.1", "description": "Minimal, unassuming, front-end foundation. Configured for HTML5 and Sass, built with Browserify and Gulp.", "homepage": "https://github.com/callmecavs/outset",