mirror of https://github.com/curbengh/hexo-yam
parent
b054c0a24b
commit
ede71a0857
|
@ -26,7 +26,7 @@ function logicHtml (str, data) {
|
||||||
const exclude = options.exclude
|
const exclude = options.exclude
|
||||||
const globOptions = options.globOptions
|
const globOptions = options.globOptions
|
||||||
|
|
||||||
let excludeString = exclude
|
let excludeString = exclude || ''
|
||||||
if (Array.isArray(exclude)) excludeString = exclude.join('')
|
if (Array.isArray(exclude)) excludeString = exclude.join('')
|
||||||
if (excludeString.includes('/')) globOptions.basename = false
|
if (excludeString.includes('/')) globOptions.basename = false
|
||||||
|
|
||||||
|
@ -51,7 +51,7 @@ function logicCss (str, data) {
|
||||||
const exclude = options.exclude
|
const exclude = options.exclude
|
||||||
const globOptions = options.globOptions
|
const globOptions = options.globOptions
|
||||||
|
|
||||||
let excludeString = exclude
|
let excludeString = exclude || ''
|
||||||
if (exclude && Array.isArray(exclude)) excludeString = exclude.join('')
|
if (exclude && Array.isArray(exclude)) excludeString = exclude.join('')
|
||||||
if (excludeString && excludeString.includes('/')) globOptions.basename = false
|
if (excludeString && excludeString.includes('/')) globOptions.basename = false
|
||||||
|
|
||||||
|
@ -79,7 +79,7 @@ function logicJs (str, data) {
|
||||||
const exclude = options.exclude
|
const exclude = options.exclude
|
||||||
const globOptions = options.globOptions
|
const globOptions = options.globOptions
|
||||||
|
|
||||||
let excludeString = exclude
|
let excludeString = exclude || ''
|
||||||
if (exclude && Array.isArray(exclude)) excludeString = exclude.join('')
|
if (exclude && Array.isArray(exclude)) excludeString = exclude.join('')
|
||||||
if (excludeString && excludeString.includes('/')) globOptions.basename = false
|
if (excludeString && excludeString.includes('/')) globOptions.basename = false
|
||||||
|
|
||||||
|
@ -112,7 +112,7 @@ function logicSvg () {
|
||||||
const include = options.include
|
const include = options.include
|
||||||
const globOptions = options.globOptions
|
const globOptions = options.globOptions
|
||||||
|
|
||||||
let includeString = include
|
let includeString = include || ''
|
||||||
if (include && Array.isArray(include)) includeString = include.join('')
|
if (include && Array.isArray(include)) includeString = include.join('')
|
||||||
if (includeString && includeString.includes('/')) globOptions.basename = false
|
if (includeString && includeString.includes('/')) globOptions.basename = false
|
||||||
|
|
||||||
|
@ -154,7 +154,7 @@ function logicGzip () {
|
||||||
const include = options.include
|
const include = options.include
|
||||||
const globOptions = options.globOptions
|
const globOptions = options.globOptions
|
||||||
|
|
||||||
let includeString = include
|
let includeString = include || ''
|
||||||
if (include && Array.isArray(include)) includeString = include.join('')
|
if (include && Array.isArray(include)) includeString = include.join('')
|
||||||
if (includeString && includeString.includes('/')) globOptions.basename = false
|
if (includeString && includeString.includes('/')) globOptions.basename = false
|
||||||
|
|
||||||
|
@ -200,7 +200,7 @@ function logicBrotli () {
|
||||||
const include = options.include
|
const include = options.include
|
||||||
const globOptions = options.globOptions
|
const globOptions = options.globOptions
|
||||||
|
|
||||||
let includeString = include
|
let includeString = include || ''
|
||||||
if (include && Array.isArray(include)) includeString = include.join('')
|
if (include && Array.isArray(include)) includeString = include.join('')
|
||||||
if (includeString && includeString.includes('/')) globOptions.basename = false
|
if (includeString && includeString.includes('/')) globOptions.basename = false
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue