我已经设置了一个 uncss grunt 任务。我的 html 文件位于“public”文件夹中,我的 css 位于“public/css”中。
我像这样设置我的咕噜任务:
uncss: {
dist: {
files: {
'faq.min.css' : ['public/faq.html']
}
}
}
我收到一条错误消息:
Fatal error: UnCSS: could not open /css
我确实在我的html页面中导入了我的css:
<link href="css/faq.min.css" rel="stylesheet" />
我尝试设置 htmlroot、csspath,但似乎没有任何效果。
如果我设置
csspath: 'css'
它为路径添加了一个额外的 CSS。
/homepage/public/css/css/faq.min.css
有人可以帮忙吗?