1
0
mirror of https://github.com/fspc/workstand.git synced 2025-02-23 09:13:23 -05:00

Webpack settings were wrong.

This commit is contained in:
Drew Larson 2017-01-16 13:16:34 -06:00
parent 1b5e8104c6
commit 04bf115307
2 changed files with 10 additions and 5 deletions

View File

@ -126,6 +126,7 @@ STATICFILES_DIRS = [
('vendor', os.path.join(BASE_DIR, '../vendor')), ('vendor', os.path.join(BASE_DIR, '../vendor')),
os.path.join(BASE_DIR, '../assets') os.path.join(BASE_DIR, '../assets')
] ]
STATIC_ROOT = 'static' STATIC_ROOT = 'static'
STATIC_URL = '/static/' STATIC_URL = '/static/'

View File

@ -37,8 +37,12 @@ LOGGING = {
}, },
} }
WEBPACK_LOADER = {
WEBPACK_LOADER.update({ 'DEFAULT': {
'BUNDLE_DIR_NAME': 'assets/dist/', 'CACHE': True,
'STATS_FILE': os.path.join(BASE_DIR, '../webpack-stats-prod.json') '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']
}
}