build-sprite.js 341 Bytes
Newer Older
1 2 3 4 5 6 7 8 9
import fs from 'fs';
import path from 'path';
import icons from '../dist/icons.json';
import buildSpriteString from './build-sprite-string';

const OUT_FILE = path.resolve(__dirname, '../dist/feather-sprite.svg');

console.log(`Building ${OUT_FILE}`); // eslint-disable-line no-console

10
fs.writeFileSync(OUT_FILE, buildSpriteString(icons));