Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Changing an imported file (with Sass) doesn't trigger re-compile #13

Closed
PerfectlyNormal opened this Issue · 7 comments

3 participants

@PerfectlyNormal

I created a small repo at PerfectlyNormal/turbo-trouble that demonstrates my problem.

application.css.scss and print.css.scss is precompiled, but they @import "changeme"; and @import "changeme2"; (my real app is obviously a bit more complex than this, but it is the importing that is the problem)

This works fine the first time, but when I change something in either _changeme.scss or _changeme2.scss and precompile, these changes isn't detected, and application.css and print.css isn't updated.

I was hoping it was some kind of easy way to fix this, without using Sprockets' require, since that doesn't seem to play well with variables and mixins from different files.

I'd like to keep using the gem, as it gives me a very nice speed boost (from several minutes down to a few seconds!), so thanks for creating it!

@ndbroadbent
Owner

You're a legend, thanks so much for the demo repo! That's a huge help. I've fixed this problem by manually including the source of @imported files from SASS templates (which also works recursively.)
It was either that or invoking the SASS processor, but the whole point of this gem is to avoid processing as much as possible.

Please try out the updated version at 0.1.11, and let me know if it's working for you!

@ndbroadbent
Owner

Sorry, one second - just fixing a bug...

@PerfectlyNormal
@ndbroadbent
Owner

Ok, great! I've fixed the bug, and also added support for Less @imports. Thanks again for opening the issue!

@ndbroadbent
Owner

Oh, forgot to mention, please use version 0.1.12 when you update tomorrow. Cheers!

@PerfectlyNormal

Hi. Sorry I haven't replied yet. Been super-busy. Gave it a quick spin, and it seems to be working fine now. Thanks!

@aaronjensen

This seems to have regressed in 0.2.9. Only changes to the parent sass file actually trigger changes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.