Skip to content

Commit

Permalink
Update build scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
Teddy95 committed Jul 25, 2020
1 parent 0e06dd9 commit 3b21112
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions build/createIconList.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
var fs = require('fs')
var path = require('path')

function getBase64String (type) {
return "data:image/svg+xml;base64," + fs.readFileSync(path.join(__dirname, `../dist/icons/${type}.svg`)).toString('base64')
}

var icons = {
blank: getBase64String('blank'),
active: getBase64String('active'),
hover: getBase64String('hover')
}

function getBase64String (type) {
return "data:image/svg+xml;base64," + fs.readFileSync(path.join(__dirname, `../dist/icons/${type}.svg`)).toString('base64')
}

fs.writeFileSync(path.join(__dirname, '../src/script/icons.json'), JSON.stringify(icons))

0 comments on commit 3b21112

Please sign in to comment.