Added isRemoteUrl property for inline image processing
This commit is contained in:
parent
a80d989fdb
commit
afa48c094e
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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)), '')
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
|
|
@ -9,5 +9,6 @@
|
|||
"contactSecondary": "<a href='https://mapurl.com'><span>Happy Steet 31, DK-8000 Aarhus C, Denmark</span></a>",
|
||||
"logoUrl": "/assets/light.png",
|
||||
"logoAlt": "light logo",
|
||||
"website": "http://light.dk"
|
||||
}
|
||||
"website": "http://light.dk",
|
||||
"isRemoteUrl": false
|
||||
}
|
||||
Loading…
Reference in New Issue