We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5986091 + 34006ad commit 0390140Copy full SHA for 0390140
1 file changed
scripts/icon-index-generator.js
@@ -13,7 +13,7 @@ rrs(svgIconPath).forEach((file) => {
13
while (found === false && index < fileLines.length) {
14
if (fileLines[index].indexOf('export default') > -1) {
15
const moduleName = fileLines[index].split(' ')[2].replace(';', '').trim();
16
- const modulePath = file.substring(0, file.length - 3).replace(svgIconPath, '');
+ const modulePath = file.substring(0, file.length - 3).replace(/\\/g, '/').replace(svgIconPath, '');
17
18
outArray.push(`export ${moduleName} from './${modulePath}';\n`);
19
0 commit comments