diff --git a/tasks/build.js b/tasks/build.js index 8e162ac..b37bbe8 100644 --- a/tasks/build.js +++ b/tasks/build.js @@ -34,7 +34,7 @@ function buildTask(options) { return options .src([cwd + '/**/*.html', '!' + cwd + '/**/*.inc.html']) .pipe(preprocess({ context })) - .pipe(inlineImg()) + .pipe(inlineImg({ getHTTP: confItems[0]["isRemoteUrl"] })) .pipe( inlineCss({ applyTableAttributes: true, diff --git a/tasks/check-for-unused.js b/tasks/check-for-unused.js index 0c37f6e..ab1c2c7 100644 --- a/tasks/check-for-unused.js +++ b/tasks/check-for-unused.js @@ -30,7 +30,7 @@ const outputWarningsForUnusedItems = (unusedItems, configs) => { unusedInConfigs.forEach(unusedInConfItems => { const unusedItemsToLog = unusedInConfItems.filter(item => item !== `${OUTPUT_KEYWORD} id`); - if (unusedItemsToLog.length) { + if (unusedItemsToLog.length && unusedItemsToLog != "@echo isRemoteUrl") { log.warn( `${unusedItemsToLog.length} unused properties in ${dir}: ${unusedItemsToLog .reduce((acc, cur) => (acc ? `${acc}, ${chalk.white(cur)}` : chalk.white(cur)), '') diff --git a/templates/dark/conf.json b/templates/dark/conf.json index 02a5253..a2a08ec 100644 --- a/templates/dark/conf.json +++ b/templates/dark/conf.json @@ -7,5 +7,6 @@ "slogan": "LED Pylon. LED Wall. Digital Signage.", "logoUrl": "/assets/dark.png", "logoAlt": "dark logo", - "website": "http://dark.dk" -} + "website": "http://dark.dk", + "isRemoteUrl": false +} \ No newline at end of file diff --git a/templates/light/conf.json b/templates/light/conf.json index 4d65d66..e99fb4b 100644 --- a/templates/light/conf.json +++ b/templates/light/conf.json @@ -9,5 +9,6 @@ "contactSecondary": "Happy Steet 31, DK-8000 Aarhus C, Denmark", "logoUrl": "/assets/light.png", "logoAlt": "light logo", - "website": "http://light.dk" -} + "website": "http://light.dk", + "isRemoteUrl": false +} \ No newline at end of file