diff --git a/index.js b/index.js index 95ca27f3d..2a60bc884 100644 --- a/index.js +++ b/index.js @@ -8,7 +8,7 @@ data.icons.forEach(i => { const filename = i.title.toLowerCase() .replace(/\+/g, "plus") .replace(/[ .\-!’]/g, ''); - i.svg = fs.readFileSync(`./icons/${filename}.svg`, 'utf8'); + i.svg = fs.readFileSync(`${__dirname}/icons/${filename}.svg`, 'utf8'); icons[i.title] = i });