From 0d37e6fd8ef9b5dff244eba3295a61529be5e8ba Mon Sep 17 00:00:00 2001 From: Corban-Lee Jones Date: Tue, 15 Oct 2024 00:00:56 +0100 Subject: [PATCH] offline compress for prod --- core/settings.py | 1 + 1 file changed, 1 insertion(+) diff --git a/core/settings.py b/core/settings.py index 50aa09a..8526e0d 100644 --- a/core/settings.py +++ b/core/settings.py @@ -247,6 +247,7 @@ STATICFILES_FINDERS = ( # region SASS Compression COMPRESS_ENABLED = True +COMPRESS_OFFLINE = not env("DEBUG") COMPRESS_PRECOMPILERS = [("text/x-scss", "django_libsass.SassCompiler")] COMPRESS_CSS_FILTERS = ["compressor.filters.css_default.CssAbsoluteIdentifier"] LIBSASS_ADDITIONAL_INCLUDE_PATHS = [str(BASE_DIR / "static/bootstrap-5.3.3/scss")]