feather/bin/build-sprite.js

11 lines
310 B
JavaScript
Raw Permalink Normal View History

2018-02-21 03:30:59 +03:00
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');
2018-05-18 08:42:08 +03:00
console.log(`Building ${OUT_FILE}...`);
2018-02-21 03:30:59 +03:00
fs.writeFileSync(OUT_FILE, buildSpriteString(icons));