From 3ca010fd42404215c7691a89426536007471a5d6 Mon Sep 17 00:00:00 2001 From: Leandro Roberto Date: Thu, 7 Jan 2021 14:03:47 -0300 Subject: [PATCH] HOT-FIX: corrige leitura de json do front em dev --- sapl/settings.py | 3 +++ 1 file changed, 3 insertions(+) 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/'