We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dc7f9da commit 01f6ec0Copy full SHA for 01f6ec0
static_precompiler/compilers/less.py
@@ -67,10 +67,8 @@ def compile_file(self, source_path):
67
68
# LESS, unlike SASS, can't add correct relative paths in source map when the compiled file
69
# is not in the same dir as the source file. We fix it here.
70
- sourcemap["sources"] = [
71
- "../" * len(source_path.split("/")) + posixpath.dirname(source_path) + "/" + source
72
- for source in sourcemap["sources"]
73
- ]
+ sourcemap["sourceRoot"] = "../" * len(source_path.split("/")) + posixpath.dirname(source_path)
+
74
sourcemap["file"] = posixpath.basename(source_path)
75
76
with open(sourcemap_full_path, "w") as sourcemap_file:
0 commit comments