我有一个任务,首先通过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
被用作净化过滤器。