build-svgs.js 283 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13
/**
 * @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);
});