🎉 .svg input directory configure

This commit is contained in:
KaizIqbal 2020-07-23 10:18:09 +05:30
parent 1638b88775
commit c13e9f7072

View file

@ -1,4 +1,11 @@
import path from "path";
import fs from "fs";
// store config to <project_root>/bitmaps/
export const bitmapsPath = path.resolve(process.cwd(), "bitmaps");
// Source Directory
const svgsDir = path.resolve(__dirname, "svg");
const svgs = fs.readdirSync(svgsDir);
// Out Directory
const bitmapsDir = path.resolve(process.cwd(), "bitmaps");
export { svgs, bitmapsDir };