1

我正在尝试在我的 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; }; 我做错了什么?

4

1 回答 1

0

显然这是不可能的,因为 UnCSS 无法编译 PHP 等服务器端语言

于 2015-04-28T15:48:00.090 回答