Don't try and compress sourcemaps

This commit is contained in:
Jake Howard 2022-08-03 21:41:24 +01:00
parent 616b5f0415
commit 1b1617380c
Signed by: jake
GPG key ID: 57AFB45680EDD477

View file

@ -1,6 +1,7 @@
from pathlib import Path from pathlib import Path
import environ import environ
from whitenoise.compress import Compressor as WhitenoiseCompressor
BASE_DIR = Path(__file__).parent.parent BASE_DIR = Path(__file__).parent.parent
@ -141,6 +142,10 @@ if not DEBUG:
STATIC_ROOT = BASE_DIR / "collected-static" STATIC_ROOT = BASE_DIR / "collected-static"
STATIC_URL = "/static/" STATIC_URL = "/static/"
WHITENOISE_SKIP_COMPRESS_EXTENSIONS = list(
WhitenoiseCompressor.SKIP_COMPRESS_EXTENSIONS
) + ["map"]
MEDIA_ROOT = BASE_DIR / "media" MEDIA_ROOT = BASE_DIR / "media"
MEDIA_URL = "/media/" MEDIA_URL = "/media/"