Skip to content
This repository has been archived by the owner on Jan 31, 2024. It is now read-only.

Commit

Permalink
Sdf icons (#3)
Browse files Browse the repository at this point in the history
* Build sdf icons in spritesheets
  • Loading branch information
nickpeihl authored Aug 5, 2019
1 parent d8475cb commit 1352149
Show file tree
Hide file tree
Showing 5 changed files with 1,167 additions and 30 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
.DS_Store*
_site/
dist
node_modules
npm-debug.log
npm-debug.log
9 changes: 6 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
const path = require('path');
const gatherFiles = require('./scripts/gather-files');
const iconSvgPath = path.join(__dirname, './icons');

module.exports = {
layouts: {
all: require('./layouts/all.json')
},
svgArray: gatherFiles(iconSvgPath)
svgArray: require('./dist/svgicons.json'),
spritesheet: {
1: require('./dist/sprite@1.json'),
2: require('./dist/sprite@2.json'),
4: require('./dist/sprite@4.json')
}
};
Loading

0 comments on commit 1352149

Please sign in to comment.