使用Gulp通过purifycss运行PostCSS编译的样式表

时间:2017-03-14 17:23:06

标签: gulp postcss purifycss

我有一个任务,首先通过postcss插件运行CSS文件,然后通过purifycss运行:

.pipe(postcss(processors))
.pipe(purify(['src/test/html/*.html']))
.pipe(gulp.dest(PLI.target.test.css));

然而,CSS并未被净化。谁知道为什么?

可以在此处找到运行构建的实际任务:superfly-css-task-build

如果您克隆此project并运行npm i && npm run test,然后查看target/test/css/index.css所有未使用的CSS仍包含在文件中,即使src/test/html/index.html被用作净化过滤器。

0 个答案:

没有答案