Answer the question
In order to leave comments, you need to log in
How to set stylesheet to be ignored for uncss in gulp?
gulp.task('build', ['clean'], function () {
return gulp.src('app/*.html')
.pipe(useref())
.pipe(gulpif('*.js', uglify()))
.pipe(gulpif('*.css', autoprefixer({
browsers: ['last 30 versions'],
cascade: false
})))
.pipe(gulpif('*.css', uncss({
html: ['./app/index.html'],
ignoreSheets: ['app/css/test.css'] // не работает!!!
})))
.pipe(gulpif('*.css', minifyCss()))
.pipe(gulp.dest('dist'));
});
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question