-
Notifications
You must be signed in to change notification settings - Fork 462
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
External Sourcemaps #837
Comments
Have built source maps via gulp-ruby-sass, I'm assuming this is the same sourcemap output via ruby sass. It handles the Visual mappings between the two here: gulp-ruby-sass, node-sass/libsass. libsass mappings (With AAAA issue):
ruby-sass mappings:
|
+1 |
+1 |
1 similar comment
+1 |
+1 |
This might be solved by #910! By the way the |
Please re-open if this is still an issues! |
I imported libsass master into node-sass, ran gulp-sass. There doesn't appear to be any change to the mapping problem. Still exists. |
Please give at least some example input and output, thanks! |
input.scss
_test.scss
output.css
output.css.map
The problem seems to be stemming from the |
OK, I tested your example with latest master and it gives completely different results than you posted?? I also see "sourceRoot" in your output.css.map, which is not from libsass?? So what are you actually pasting here?? For me this is an invalid report, sorry! output.css.map
|
My mistake! This was coming from gulp-sourcemaps which I was led to believe used libsass as a dependancy. Not the case. Carry on. |
Have been trying sourcemaps out recently and discovered the incorrect mappings, with some help I built the latest node-sass+libsass here.
I'm using the following to build my scss files to css with sourcemaps:
Previously I'd get this output:
And with latest libsass+node-sass:
I'm not sure if libsass or node-sass provides the optional
sourceRoot
property, kind of important if you're not embedding your source files into the sourcemap. I either need to manually provide it or can insert it via gulp-sourcemaps, alternatively I think prepending the relative path to each file insources
works too.The mappings are much better, you can see visually through this example. Some small improvements could be done such as with
sepia(1)
is mapping to the .scsssepia
, and then the;
mapping to the .scss(1);
I haven't tried seeing if the mapping is different if I use a variable instead of 1. The visualizer also shows each mapping is duplicated with AAAA between each mapping, I think that might be a bug? It doesn't occur with mappings to the _config.scss partialAfter this I sent it through to gulp-autoprefixer with gulp-sourcemaps, I'm not sure if it's due to the sourcemap from libsass or the way it's building it's own, the mapping is mostly correct, however the color variables mappings were lost, and the last
}
is mapped incorrectly. You can see the result here. I did a find&replace to remove the AAAA mappings as well, the output was the same.The text was updated successfully, but these errors were encountered: