Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Affected Stylesheets not Compiling #25

Open
bryaan opened this issue Aug 8, 2015 · 2 comments
Open

Affected Stylesheets not Compiling #25

bryaan opened this issue Aug 8, 2015 · 2 comments

Comments

@bryaan
Copy link

bryaan commented Aug 8, 2015

When a change is made in say variables.sass that is referenced by say main.sass, only the variables file compiles.

Problem is the main.sass references a variable in that changed file but is not compiled so the change does not propagate.

I attempted to use --force, but this requires --update, and in this configuration it is not easy to specify the params for --update without modifying the sbt-sass codebase.

So please either:

  • Allow the use of --force functionality
  • Detect dependent files to be compiled

This would also solve:
Partials with only variables not compiled #16
#16

@bryaan
Copy link
Author

bryaan commented Aug 8, 2015

Looking into SbtSass.scala I see that this problem originates from using modifiedSources.

This of course cannot find dependencies of variables.sass that may need to be compiled.

Why don't we change this to use the sass --watch flag which will take care of the dependency check automatically and requires no code duplication on our side?

@irundaia
Copy link

I had some issues with getting corporate IT to install ruby/sass. So I rewrote the sbt-sass plugin to use libsass rather than sass. While doing this, I also solved the above mentioned bug. Feel free to use that plugin.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants