mirror of
https://github.com/feathericons/feather.git
synced 2023-08-10 21:13:24 +03:00
14 lines
283 B
JavaScript
14 lines
283 B
JavaScript
/**
|
|
* @file Builds `dist/icons` directory.
|
|
*/
|
|
|
|
import fs from 'fs';
|
|
import path from 'path';
|
|
import { icons, toSvg } from '../src';
|
|
|
|
Object.keys(icons).forEach(icon => {
|
|
const svg = toSvg(icon);
|
|
|
|
fs.writeFileSync(path.resolve(__dirname, `../dist/icons/${icon}.svg`), svg);
|
|
});
|