offline compress for prod
All checks were successful
Build and Push Docker Image / build (push) Successful in 13s

This commit is contained in:
Corban-Lee Jones 2024-10-15 00:00:56 +01:00
parent ed7dab3147
commit 0d37e6fd8e

View File

@ -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")]