From 1b1617380ca5406e830d8232cb63dbed3805cce5 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Wed, 3 Aug 2022 21:41:24 +0100 Subject: [PATCH] Don't try and compress sourcemaps --- website/settings.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/website/settings.py b/website/settings.py index e3b5d68..fd0d9ec 100644 --- a/website/settings.py +++ b/website/settings.py @@ -1,6 +1,7 @@ from pathlib import Path import environ +from whitenoise.compress import Compressor as WhitenoiseCompressor BASE_DIR = Path(__file__).parent.parent @@ -141,6 +142,10 @@ if not DEBUG: STATIC_ROOT = BASE_DIR / "collected-static" STATIC_URL = "/static/" +WHITENOISE_SKIP_COMPRESS_EXTENSIONS = list( + WhitenoiseCompressor.SKIP_COMPRESS_EXTENSIONS +) + ["map"] + MEDIA_ROOT = BASE_DIR / "media" MEDIA_URL = "/media/"