Merge pull request #49 from vaskevich/dev
Data file size reduction: strip quotes around keysrelease
commit
41c9a2ae52
|
@ -103,7 +103,8 @@ flags.emojis.sort()
|
|||
mkdirp('data', (err) => {
|
||||
if (err) throw err
|
||||
|
||||
fs.writeFile('data/index.js', `export default ${JSON.stringify(data)}`, (err) => {
|
||||
const stringifiedData = JSON.stringify(data).replace(/\"([A-Za-z_]+)\":/g, '$1:')
|
||||
fs.writeFile('data/index.js', `export default ${stringifiedData}`, (err) => {
|
||||
if (err) throw err
|
||||
})
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue