-
Notifications
You must be signed in to change notification settings - Fork 12
Open
Description
Hello developers;
I already have django-manifest-loader working on my project, but today I started to set up Whitenoise; And I am wondering if there is any wierd interaction between the two packages?
My current flow is:
- Run Webpack with SplitChunks, compression and optimization into Django's
/static/folder; - Run Django collectstatic to send the contents from
/static/toSTATIC_ROOT.
Set STATICFILES_STORAGE = "django.contrib.staticfiles.storage.ManifestStaticFilesStorage" (default) such that neither Django nor Whitenoise perform any sort of work on my static assets (Webpack does that for me);
Now, my problem arises from here onwards.
-
From what I got from Whitenoise docs, it expects
{% static ... %}to be used.- Do you know if using {% manifest_match ... %} ruins Whitenoise's operation? Or there is no correlation at all.
-
Django-manifest-loader docs tell us we can set the options below:
-
- Should I set
output_dirto be the path ofSTATIC_ROOTwhich happens to be an absolute path in my system?
- Should I set
-
- Should I set
manifest_filetostaticfiles.json, since it is also the approach used by Whitenoise?
- Should I set
-
MANIFEST_LOADER = {
'output_dir': None,
'manifest_file': 'manifest.json',
'cache': env("SERVICE_ENV", default="dev") == "prd",
'loader': DefaultLoader
}
Metadata
Metadata
Assignees
Labels
No labels