So especially with the advent of the ExternalAssets branch, manually defining depends is getting even more old. I put together a proof of concept (https://gist.github.com/3915553) and it seems to be working out fairly well so far.
I'm not committed to the actual parsing method or the specific regexes, but they work for css/scss urls() and @imports.
Reading through the source, it seems that the biggest concern is in the performance of scanning all of the dependencies, especially as each of those can have dependencies and so on. I haven't put this through any serious paces yet, but personally I'm thinking it'll be worth it.
Thoughts?
So especially with the advent of the ExternalAssets branch, manually defining depends is getting even more old. I put together a proof of concept (https://gist.github.com/3915553) and it seems to be working out fairly well so far.
I'm not committed to the actual parsing method or the specific regexes, but they work for css/scss
urls()and@imports.Reading through the source, it seems that the biggest concern is in the performance of scanning all of the dependencies, especially as each of those can have dependencies and so on. I haven't put this through any serious paces yet, but personally I'm thinking it'll be worth it.
Thoughts?