From 34ace023a12f5aee7545ba206bee5e890a49b9cf Mon Sep 17 00:00:00 2001 From: Gabriele Lucci Date: Sun, 18 Apr 2021 19:55:38 +0200 Subject: [PATCH] Add output_filename_hint when compiling with map Should fix https://github.com/andreyfedoseev/django-static-precompiler/issues/95 --- static_precompiler/compilers/libsass.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/static_precompiler/compilers/libsass.py b/static_precompiler/compilers/libsass.py index 622dd74..df727f8 100644 --- a/static_precompiler/compilers/libsass.py +++ b/static_precompiler/compilers/libsass.py @@ -45,7 +45,10 @@ def compile_file(self, source_path): try: if self.is_sourcemap_enabled: compiled, sourcemap = sass.compile( - filename=full_source_path, source_map_filename=sourcemap_path, include_paths=self.load_paths + filename=full_source_path, + source_map_filename=sourcemap_path, + output_filename_hint=full_output_path, + include_paths=self.load_paths, ) else: compile_kwargs = {}