diff --git a/sapl/settings.py b/sapl/settings.py index 282209ad3..05bd81b3a 100644 --- a/sapl/settings.py +++ b/sapl/settings.py @@ -279,6 +279,9 @@ WEBPACK_LOADER = { 'IGNORE': [r'.+\.hot-update.js', r'.+\.map'] } } +if DEBUG and not WEBPACK_LOADER['DEFAULT']['STATS_FILE'].exists(): + WEBPACK_LOADER['DEFAULT']['STATS_FILE'] = PROJECT_DIR.child( + 'frontend').child(f'webpack-stats.json') STATIC_URL = '/static/'