mirror of
https://github.com/ful1e5/apple_cursor.git
synced 2025-05-15 07:34:44 -04:00
🎉 .svg input directory configure
This commit is contained in:
parent
1638b88775
commit
c13e9f7072
1 changed files with 9 additions and 2 deletions
|
@ -1,4 +1,11 @@
|
||||||
import path from "path";
|
import path from "path";
|
||||||
|
import fs from "fs";
|
||||||
|
|
||||||
// store config to <project_root>/bitmaps/
|
// Source Directory
|
||||||
export const bitmapsPath = path.resolve(process.cwd(), "bitmaps");
|
const svgsDir = path.resolve(__dirname, "svg");
|
||||||
|
const svgs = fs.readdirSync(svgsDir);
|
||||||
|
|
||||||
|
// Out Directory
|
||||||
|
const bitmapsDir = path.resolve(process.cwd(), "bitmaps");
|
||||||
|
|
||||||
|
export { svgs, bitmapsDir };
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue