From 7ba9dca959b8031e8bc311cce45fc60b9fd0b229 Mon Sep 17 00:00:00 2001 From: IanDelMar <42134098+IanDelMar@users.noreply.github.com> Date: Tue, 14 Apr 2020 08:23:01 +0200 Subject: [PATCH] Remove task 'cssnano' The task is a relic. gulp-cssnano has been removed in commit 1208774. --- gulpfile.js | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index 48f1c26..6cb531f 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -85,28 +85,6 @@ gulp.task( }) ); -// Run: -// gulp cssnano -// Minifies CSS files -gulp.task('cssnano', function () { - return gulp - .src(paths.css + '/theme.css') - .pipe(sourcemaps.init({ loadMaps: true })) - .pipe( - plumber({ - errorHandler: function (err) { - console.log(err); - this.emit('end'); - } - }) - ) - .pipe(rename({ suffix: '.min' })) - .pipe(cssnano({ discardComments: { removeAll: true } })) - .pipe(sourcemaps.write('./')) - .pipe(gulp.dest(paths.css)) - .pipe(touch()); -}); - gulp.task('minifycss', function () { return gulp