diff --git a/packages/icon/index.js b/packages/icon/index.js index f3af2fef..7f6972e9 100755 --- a/packages/icon/index.js +++ b/packages/icon/index.js @@ -68,7 +68,7 @@ async function findIcon (options) { options.iconSrc, path.resolve(this.options.srcDir, this.options.dir.static, options.iconFileName), path.resolve(this.options.srcDir, this.options.dir.assets, options.iconFileName) - ] + ].filter(p => p) for (const iconSrc of iconSearchPath) { if (await fs.exists(iconSrc)) {