From 26007710806b72f7028c640630defe0ba0dac187 Mon Sep 17 00:00:00 2001 From: nd0ut Date: Wed, 2 Oct 2024 12:05:17 +0300 Subject: [PATCH] fix(svg-sprite): unneeded icons leak to the uc-basic sprite --- blocks/themes/uc-basic/svg-sprite.js | 2 +- build-svg-sprite.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/blocks/themes/uc-basic/svg-sprite.js b/blocks/themes/uc-basic/svg-sprite.js index f67fa0a4..851c5d84 100644 --- a/blocks/themes/uc-basic/svg-sprite.js +++ b/blocks/themes/uc-basic/svg-sprite.js @@ -1 +1 @@ -export default ""; +export default ""; diff --git a/build-svg-sprite.js b/build-svg-sprite.js index 14cf52f6..1ffad86f 100644 --- a/build-svg-sprite.js +++ b/build-svg-sprite.js @@ -46,11 +46,11 @@ const config = { }, }; -const spriter = new SVGSpriter(config); - console.log('Generating SVG sprite...'); DATA.forEach((item) => { + const spriter = new SVGSpriter(config); + fs.readdir(item.input, (err, files) => { if (err) { throw err;