Remove task 'cssnano'

The task is a relic. gulp-cssnano has been removed in commit 1208774.
This commit is contained in:
IanDelMar 2020-04-14 08:23:01 +02:00
parent 9d1bee8c94
commit 7ba9dca959
1 changed files with 0 additions and 22 deletions

View File

@ -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