From fa8de2813f1abfbab5e6688d07d286b188f0a275 Mon Sep 17 00:00:00 2001 From: KaizIqbal <24286590+KaizIqbal@users.noreply.github.com> Date: Sat, 25 Jul 2020 17:10:02 +0530 Subject: [PATCH] =?UTF-8?q?=F0=9F=96=BC=20svgs=20list?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/config.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/config.ts b/src/config.ts index 1ebdd8e..88815c9 100644 --- a/src/config.ts +++ b/src/config.ts @@ -3,7 +3,9 @@ import fs from "fs"; // Source Directory const svgsDir = path.resolve(__dirname, "svg"); -const svgs = fs.readdirSync(svgsDir); +const svgs = fs + .readdirSync(svgsDir) + .filter((file) => path.extname(file) === ".svg"); // Out Directory const bitmapsDir = path.resolve(process.cwd(), "bitmaps");