mirror of
https://github.com/Mibew/simple-icons.git
synced 2025-05-02 17:16:42 +03:00
Merge pull request #541 from simple-icons/develop
Publish relative path fix
This commit is contained in:
commit
5b68a02d55
2
index.js
2
index.js
@ -8,7 +8,7 @@ data.icons.forEach(i => {
|
|||||||
const filename = i.title.toLowerCase()
|
const filename = i.title.toLowerCase()
|
||||||
.replace(/\+/g, "plus")
|
.replace(/\+/g, "plus")
|
||||||
.replace(/[ .\-!’]/g, '');
|
.replace(/[ .\-!’]/g, '');
|
||||||
i.svg = fs.readFileSync(`./icons/${filename}.svg`, 'utf8');
|
i.svg = fs.readFileSync(`${__dirname}/icons/${filename}.svg`, 'utf8');
|
||||||
icons[i.title] = i
|
icons[i.title] = i
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user