1
0
mirror of https://github.com/simple-icons/simple-icons.git synced 2024-12-26 01:13:41 +02:00

Merge pull request #540 from jenil/feature/npm

fixes the relative path
This commit is contained in:
Johan Fagerberg 2017-09-17 10:49:38 +02:00 committed by GitHub
commit 07baee49d8

View File

@ -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
});