From 4b7dc702af30d6e7e8cb08abf5d00f86d2803c26 Mon Sep 17 00:00:00 2001 From: Clemens Wolff Date: Thu, 16 May 2019 22:02:27 -0400 Subject: [PATCH] Speed up build by reducing staticfiles scope --- app/app/settings.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/app/app/settings.py b/app/app/settings.py index 2bd86126..a8730ef6 100644 --- a/app/app/settings.py +++ b/app/app/settings.py @@ -94,7 +94,13 @@ TEMPLATES = [ ] STATICFILES_DIRS = [ - path.join(BASE_DIR, 'server/static'), + static_path + for static_path in ( + path.join(BASE_DIR, 'server', 'static', 'bundle'), + path.join(BASE_DIR, 'server', 'static', 'css'), + path.join(BASE_DIR, 'server', 'static', 'images'), + ) + if path.isdir(static_path) ] STATICFILES_STORAGE = 'whitenoise.storage.CompressedManifestStaticFilesStorage'