UnCSS not able to find stylesheet in backbone application

狂风中的少年 提交于 2019-12-11 09:40:02

问题


So my application is much in need of a CSS clean up. I did some research and I came across uncss, which seems like the best option out there so far.

A little about my application:

  • It's a backbone.marionette app
  • I use Sass
  • I compile all my assets into public/js/app.js and public/css/main.css using the amazing tool brunch.io

I've tried running both the command line tool offered in uncss, and the brunch extension of uncss. But each time I run the process, I get this error:

Error: UnCSS: no stylesheets found

Also, if anyone has any experience with brunch, this is how I add the rule to my config.coffee:

uncss:
  options:
    csspath: 'css/main.css'
    htmlroot: 'public'
  files: ['index.html']

Anyone come across this error? Does it have anything to do with the fact that I'm using a framework like backbone.marionette?

来源:https://stackoverflow.com/questions/23598695/uncss-not-able-to-find-stylesheet-in-backbone-application

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!