我正在尝试在我的 laravel 项目中使用 gulp uncss,但似乎无法使语法正确。我的吞咽任务是:
gulp.task('uncss', function() {
return gulp.src('public/output/final.css')
.pipe(uncss({
html:['resources/views/welcome.blade.php']
}))
.pipe(rename({suffix: '.clean'}))
.pipe(gulp.dest('public/css/'));
});
我意识到这只是在一页welcome.blade.php 上起作用,但我想先测试结果。使用上面的代码,我是否收到以下错误:
fn = function () { throw arg; };
我做错了什么?