Skip to content

Commit

Permalink
paths.get() to get svg dir
Browse files Browse the repository at this point in the history
  • Loading branch information
vahtos committed Jan 31, 2024
1 parent b983839 commit 0743861
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/server/lib/services/svg.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ module.exports = function svg() {
});

fs.readdirSync(paths.get().svg).forEach(file => {
sprites.add(`i-${file.replace(/\.svg/, "")}`, fs.readFileSync(path.join(paths.svg, file)));
sprites.add(`i-${file.replace(/\.svg/, "")}`, fs.readFileSync(path.join(paths.get().svg, file)));
});

return sprites.toString({inline: true});
Expand Down

0 comments on commit 0743861

Please sign in to comment.