From 3189db2781ebedf972cc2320bf45d354874cb491 Mon Sep 17 00:00:00 2001 From: Giovanni Cimolin da Silva Date: Fri, 12 Apr 2019 15:22:56 -0300 Subject: [PATCH] Enable changing the build profile used by RequireJS --- lms/envs/production.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lms/envs/production.py b/lms/envs/production.py index 5a235c2a9e..052661e9b1 100644 --- a/lms/envs/production.py +++ b/lms/envs/production.py @@ -173,6 +173,9 @@ if STATIC_URL_BASE: if not STATIC_URL.endswith("/"): STATIC_URL += "/" +# Allow overriding build profile used by RequireJS with one +# contained on a custom theme +REQUIRE_BUILD_PROFILE = ENV_TOKENS.get('REQUIRE_BUILD_PROFILE', REQUIRE_BUILD_PROFILE) # The following variables use (or) instead of the default value inside (get). This is to enforce using the Lazy Text # values when the varibale is an empty string. Therefore, setting these variable as empty text in related