From 04bf11530759c335814cabc48c1da164568f0b0f Mon Sep 17 00:00:00 2001 From: Drew Larson Date: Mon, 16 Jan 2017 13:16:34 -0600 Subject: [PATCH] Webpack settings were wrong. --- bikeshop_project/bikeshop/settings/base.py | 1 + bikeshop_project/bikeshop/settings/production.py | 14 +++++++++----- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/bikeshop_project/bikeshop/settings/base.py b/bikeshop_project/bikeshop/settings/base.py index f765bec..350b1f5 100644 --- a/bikeshop_project/bikeshop/settings/base.py +++ b/bikeshop_project/bikeshop/settings/base.py @@ -126,6 +126,7 @@ STATICFILES_DIRS = [ ('vendor', os.path.join(BASE_DIR, '../vendor')), os.path.join(BASE_DIR, '../assets') ] + STATIC_ROOT = 'static' STATIC_URL = '/static/' diff --git a/bikeshop_project/bikeshop/settings/production.py b/bikeshop_project/bikeshop/settings/production.py index 13bc343..43063ed 100644 --- a/bikeshop_project/bikeshop/settings/production.py +++ b/bikeshop_project/bikeshop/settings/production.py @@ -37,8 +37,12 @@ LOGGING = { }, } - -WEBPACK_LOADER.update({ - 'BUNDLE_DIR_NAME': 'assets/dist/', - 'STATS_FILE': os.path.join(BASE_DIR, '../webpack-stats-prod.json') -}) +WEBPACK_LOADER = { + 'DEFAULT': { + 'CACHE': True, + 'BUNDLE_DIR_NAME': 'assets/dist/', # must end with slash + 'STATS_FILE': os.path.join(BASE_DIR, '../webpack-stats-prod.json'), + 'POLL_INTERVAL': 0.1, + 'IGNORE': ['.+\.hot-update.js', '.+\.map'] + } +} \ No newline at end of file