Remove task 'cssnano'
The task is a relic. gulp-cssnano has been removed in commit 1208774
.
This commit is contained in:
parent
9d1bee8c94
commit
7ba9dca959
22
gulpfile.js
22
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
|
||||
|
|
Reference in New Issue