From 283ad4451567c0cd59f3705d194a8ccf0a7e3a5e Mon Sep 17 00:00:00 2001 From: Yohan Boniface Date: Fri, 19 Jan 2024 17:43:18 +0100 Subject: [PATCH] chore: do not try to create source maps for now It's more complex than what we thought. --- umap/storage.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/umap/storage.py b/umap/storage.py index a09bb871..f3987ba8 100644 --- a/umap/storage.py +++ b/umap/storage.py @@ -61,17 +61,11 @@ class UmapManifestStaticFilesStorage(ManifestStaticFilesStorage): if processed_path.endswith(".js"): path = Path(settings.STATIC_ROOT) / processed_path initial = path.read_text() - path_map = path.with_suffix(f"{path.suffix}.map") minified = jsmin(initial) - minified += f"\n//# sourceMappingURL={path_map.name}" path.write_text(minified) - path_map.write_text(initial) if processed_path.endswith(".css"): path = Path(settings.STATIC_ROOT) / processed_path initial = path.read_text() - path_map = path.with_suffix(f"{path.suffix}.map") minified = cssmin(initial) - minified += f"\n//# sourceMappingURL={path_map.name}" path.write_text(minified) - path_map.write_text(initial) yield original_path, processed_path, True