build-sprite.js 310 Bytes
Newer Older
1 2 3 4 5 6 7
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');

Cole Bemis's avatar
Cole Bemis committed
8
console.log(`Building ${OUT_FILE}...`);
9

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