custom manifest static files storage that also minify scss and js files

This commit is contained in:
thomas girod
2024-08-14 18:50:46 +02:00
parent 2e1f16fa04
commit b7261ec629
8 changed files with 107 additions and 82 deletions

View File

@ -273,6 +273,15 @@ STATICFILES_FINDERS = [
"sith.finders.ScssFinder",
]
STORAGES = {
"default": {
"BACKEND": "django.core.files.storage.FileSystemStorage",
},
"staticfiles": {
"BACKEND": "sith.storage.SithStorage",
},
}
# Auth configuration
AUTH_USER_MODEL = "core.User"
AUTH_ANONYMOUS_MODEL = "core.models.AnonymousUser"
@ -716,7 +725,7 @@ if TESTING:
"BACKEND": "django.core.files.storage.InMemoryStorage",
},
"staticfiles": {
"BACKEND": "django.contrib.staticfiles.storage.StaticFilesStorage",
"BACKEND": "sith.storage.SithStorage",
},
}