diff --git a/src/dark/conf.json b/src/dark/conf.json
index 5641aec..02a5253 100644
--- a/src/dark/conf.json
+++ b/src/dark/conf.json
@@ -1,15 +1,11 @@
{
- "persons": [
- {
- "id": "dark",
- "signature": "Best regards,",
- "name": "The dark mail team",
- "contactMain": "Call (45) 80100100 or email us at",
- "contactMail": "info@dark.dk",
- "slogan": "LED Pylon. LED Wall. Digital Signage.",
- "logoUrl": "/assets/dark.png",
- "logoAlt": "dark logo",
- "website": "http://dark.dk"
- }
- ]
+ "id": "dark",
+ "signature": "Best regards,",
+ "name": "The dark mail team",
+ "contactMain": "Call (45) 80100100 or email us at",
+ "contactMail": "info@dark.dk",
+ "slogan": "LED Pylon. LED Wall. Digital Signage.",
+ "logoUrl": "/assets/dark.png",
+ "logoAlt": "dark logo",
+ "website": "http://dark.dk"
}
diff --git a/tasks/build.js b/tasks/build.js
index 82a2dc3..cc7fe86 100644
--- a/tasks/build.js
+++ b/tasks/build.js
@@ -88,9 +88,11 @@ function buildTask(options){
.forEach(function readConfigurations(dir){
/** NB: For 'watch' to properly work, the cache needs to be deleted before each require. */
var confPath = '../tmp/' + dir + '/conf.json';
+ var current = null;
delete require.cache[require.resolve(confPath)];
- promises.push(makeTemplates(dir, require(confPath).persons));
+ current = require(confPath);
+ promises.push(makeTemplates(dir, current.persons || [current]));
});
Q.all(promises);