Broccoli-uncss and ember-cli

#1 looks like a really interesting project to bring asset size down a bit further.

I managed to get it to work via the following setting in my Brocfile:

var tree = app.toTree();
module.exports = tree = uncss(tree, { 
  html: ['dist/index.html'], 
  csspath: 'assets', 
  stylesheets: ['vendor.css'],  //this is the compiled sass including Foundation
  timeout: 2000 

Problem now being it takes out css that is actually used, which I guess is due to it not recognizing the templates properly.

At it mentions the HTML files are loaded via PhantomJS, so it should work in theory. Anyone used that before? Anyone knows how to get this to work?


Any news on this? I’m interested…