From fc1efcc5e0ace5d2a11540fb53e82e18a6e24997 Mon Sep 17 00:00:00 2001 From: Jenil Gogari Date: Sat, 16 Sep 2017 22:46:33 -0400 Subject: [PATCH] fixes the relative path --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 });