mirror of
https://github.com/feathericons/feather.git
synced 2023-08-10 21:13:24 +03:00
14 lines
322 B
JavaScript
14 lines
322 B
JavaScript
import fs from 'fs';
|
|
import path from 'path';
|
|
import icons from '../src/icons';
|
|
|
|
const OUT_DIR = path.resolve(__dirname, '../dist/icons');
|
|
|
|
console.log(`Building SVGs in ${OUT_DIR}`);
|
|
|
|
Object.keys(icons).forEach(name => {
|
|
const svg = icons[name].toSvg();
|
|
|
|
fs.writeFileSync(path.join(OUT_DIR, `${name}.svg`), svg);
|
|
});
|