diff --git a/hypha/settings/base.py b/hypha/settings/base.py index 0595d3b2cfd40aff7b59b73a39d1ee244f90a2a2..574cbf99a3f4dde1de4875016a91c602cf5eb01f 100644 --- a/hypha/settings/base.py +++ b/hypha/settings/base.py @@ -660,7 +660,9 @@ REFERRER_POLICY = env.get('SECURE_REFERRER_POLICY', # Webpack bundle loader # When disabled, all included bundles are silently ignored. -ENABLE_WEBPACK_BUNDLES = True +if env.get('ENABLE_WEBPACK_BUNDLES', 'true').lower().strip() == 'true': + ENABLE_WEBPACK_BUNDLES = True + WEBPACK_LOADER = { 'DEFAULT': { 'BUNDLE_DIR_NAME': 'app/',