mirror of
https://github.com/ful1e5/apple_cursor.git
synced 2025-05-15 07:34:44 -04:00
🖼 svgs file with path
This commit is contained in:
parent
3919925cfa
commit
c7669a0647
1 changed files with 3 additions and 1 deletions
|
@ -3,9 +3,11 @@ import fs from "fs";
|
||||||
|
|
||||||
// Source Directory
|
// Source Directory
|
||||||
const svgsDir = path.resolve(__dirname, "svg");
|
const svgsDir = path.resolve(__dirname, "svg");
|
||||||
const svgs = fs
|
|
||||||
|
let svgs = fs
|
||||||
.readdirSync(svgsDir)
|
.readdirSync(svgsDir)
|
||||||
.filter((file) => path.extname(file) === ".svg");
|
.filter((file) => path.extname(file) === ".svg");
|
||||||
|
svgs = svgs.map((svg: string) => path.resolve(svgsDir, svg));
|
||||||
|
|
||||||
// Out Directory
|
// Out Directory
|
||||||
const bitmapsDir = path.resolve(process.cwd(), "bitmaps");
|
const bitmapsDir = path.resolve(process.cwd(), "bitmaps");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue