aboutsummaryrefslogtreecommitdiffstats
path: root/www/js
diff options
context:
space:
mode:
authorDave Arter <davea@mysociety.org>2017-06-16 17:24:59 +0100
committerDave Arter <davea@mysociety.org>2017-06-22 16:31:00 +0100
commit88b724b8bc7aa4932c1ddc03c580152dc6aaf492 (patch)
treeafa117cdae90219eeda24d9ccdf215aa11fa5c1a /www/js
parentf19ac095f0c589bff68d4629576bc958ecdab1b3 (diff)
Process index.html as template at build time
There are a few places in index.html that depend on CONFIG in order to load the right cobrand stylesheet/language/map etc. This commit removes the run time script loading and instead processes index.html as a lodash template at build time to pull in the correct stylesheets and scripts.
Diffstat (limited to 'www/js')
-rw-r--r--www/js/config.js-example5
1 files changed, 5 insertions, 0 deletions
diff --git a/www/js/config.js-example b/www/js/config.js-example
index c2d3f71..aa9296b 100644
--- a/www/js/config.js-example
+++ b/www/js/config.js-example
@@ -36,3 +36,8 @@ var CONFIG = {
// Bing Maps API key if needed
BING_MAPS_API_KEY: ''
};
+
+
+// This bit is so this can be imported as a nodejs module for hook processing
+var module = module || {};
+module.exports = CONFIG;