Don't try and compress sourcemaps
This commit is contained in:
parent
616b5f0415
commit
1b1617380c
1 changed files with 5 additions and 0 deletions
|
@ -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/"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue