You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
dart-sass always returns absolute file URLs like file:///absolute/path/to/src/input.css
in the sources array of result.map
also when i enter relative filepaths like src/input.css
is there a way to get relative file paths in result.map.sources?
im looking for the equivalent of options.source_map_file_urls in libsass
// libsass/src/source_map.cppif (ctx.c_options.source_map_file_urls) {
source = File::rel2abs(source);
// check for windows abs pathif (source[0] == '/') {
// ends up with three slashes
source = "file://" + source;
} else {
// needs an additional slash
source = "file:///" + source;
}
}
but i had no luck grepping through dart-sass sources
This is a limitation inherent to the way that the JS API currently handles file paths. We're actively redesigning the API to allow for the use case that you describe here.
Uh oh!
There was an error while loading. Please reload this page.
dart-sass always returns absolute file URLs like
file:///absolute/path/to/src/input.css
in the
sources
array ofresult.map
also when i enter relative filepaths like
src/input.css
is there a way to get relative file paths in
result.map.sources
?im looking for the equivalent of
options.source_map_file_urls
in libsassbut i had no luck grepping through dart-sass sources
related to sass/node-sass#3057
The text was updated successfully, but these errors were encountered: