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

Issue with paths in webjar scss #15

Open
cvrabie opened this issue Oct 21, 2014 · 1 comment
Open

Issue with paths in webjar scss #15

cvrabie opened this issue Oct 21, 2014 · 1 comment

Comments

@cvrabie
Copy link

cvrabie commented Oct 21, 2014

I am able to bundle scss from a webjar into my main css, but there are problems bundling scss from webjars that reference other resources from that webjar. For example font-awesome will get downloaded to lib/font-awesome with the fonts in locations like /assets/lib/font-awesome/fonts/fontawesome-webfont.eot. The problem is that the font-awesome scss references it with ../fonts/fontawesome-webfont.eot which after compilation will be /assets/fonts/fontawesome-webfont.eot.

Now I'm not sure that this issue should be fixed by the sbt-sass plugin, by configurations to sass itself or by some other means. I've opened a stack overflow question trying to get some opinions, but so far no luck. However, It's my opinion that this can/should be solved at this level. At the very list you can add a note to the troubles and solutions section in the read me file, as I expect this will become a more widespread issue together with the prevalence of webjars.

@tindzk
Copy link

tindzk commented Jan 13, 2015

I don't think this is an sbt-sass issue. Usually, .scss files provide a way to override paths. As for Bootstrap, I had to use the following:

$icon-font-path: "lib/bootstrap-sass/fonts/bootstrap/"
@import "lib/bootstrap-sass/stylesheets/bootstrap.scss"

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