ndbroadbent / turbo-sprockets-rails3

Speeds up your Rails 3 assets:precompile by only recompiling changed files, and only compiling once to generate all assets
MIT License
975 stars 78 forks source link

Sass's @import nullifies much of the benefit #32

Open aaronjensen opened 11 years ago

aaronjensen commented 11 years ago

Because turbo-sprockets is now (necessarily) actually processing the sass when there is an import, much of the benefit of turbo-sprockets-rails3 is not realized. It still takes about 60 seconds to do this on our servers. I'm wondering if there's a way to speed it up. I'm opening this up as more of a brainstorming ticket as I don't have an implementation in mind.

ndbroadbent commented 11 years ago

Sure, I can have another go at handling all the imports instead of just processing. I gave up last time when I started looking at the globbing feature provided by sass-rails, but it might not be as hard as I thought.

aaronjensen commented 11 years ago

Any thoughts on this one?

rubemz commented 10 years ago

any updates on this?

ndbroadbent commented 10 years ago

No updates yet, it's still a very tough problem to solve. I think the answer would be only processing a subset of sass, such as the 'import' directives, but that's a lot of work

PikachuEXE commented 10 years ago

Most of compile time goes into SASS So although this gem is useful (thx @ndbroadbent btw :), the compile time is still very long. Long enough to force me to precompile assets locally before pushing to Heroku (15 min time limit) ;_;