-
-
Notifications
You must be signed in to change notification settings - Fork 252
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
Influence image-url for SASS / SCSS / Compass in Visual Studio & Web Essentials #1796
Comments
Hi, Short answer: Note that Less provides this option out of the box, while Sass does not resolve your image parth. Story: Having said that, libsass was using its own implementation of However, there is an open proposal to add this function in Sass standard: sass/libsass#532, inspired by less feature. Web Essentials also uses Ruby-Sass via alternative ruby runtime, which was implemented by @davidtme: #1582. I don't know if it provisions the Compass plugin. |
@am11 Can you please give me example of where "source and target paths equal" I don't get it - what am I supposed to do? I am also getting this error - is this related: 3/31/2015 12:42:59 PM: An exception was thrown when updating TextView property: System.NotSupportedException: The given path's format is not supported. |
Hi, sorry I was unable to add that option, as I was unable to compile the project because of path too long issue.
I think if .scss and .css file in the same folder and the image URL normalizer should be skipped. Meaning make sure you do not have |
@am11 Well the problem for that case is usage of partials - like I have main.scss in one folder where it generates main.css. But since I am using partials (as probably 99% of other people) - that path translator kicks in and messes up all URLs. I get that it is complicated to expose node-sass & libsass settings - but this is definitely deal breaker - I've been trying to find a way around this for past 2 weeks and the only thing I could do is stick with absolute urls, like /path/to/img.jpg. Definitely would appreciate if someone provides option for $image-url not to touch my urls if not allow me to configure path. I would implement it myself, but I am unsure where to start... |
@lepipele, I agree. I am afraid currently there is no option available in WE2013 for your scenario. I will try to revisit the build issue (after node-sass next beta release) and make the auto path resolution option disableable. |
Copy: dotnet/msbuild#57. |
I have scss file in Visual Studio, I've imported compass this guide:
SASS AND SCSS IN VISUAL STUDIO 2013 WITH WEB ESSENTIALS – STARRING COMPASS AND SUSY
However now when I do in scss:
I get:
How can I influence that output path? Can I somehow say to SASS compiler not to change path at all (just leave ../img/intro.jpg)?
The text was updated successfully, but these errors were encountered: