We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
-
vite-plugin-svg-icons/packages/core/src/index.ts
Line 266 in 7550357
当 symbolId 需要设置成 [dir]-[name] ,且非嵌套目录的情况下
symbolId
[dir]-[name]
[icon]-[dir]-[name] > [icon]--[name] [dir]-[name] > -[name]
if (!dirName) { id = id.replace("--", "-"); id = id.startsWith('-') ? id. substring(1) : id }
The text was updated successfully, but these errors were encountered:
直接在上面的判断后面加这个会更好点,考虑了不写 [dir]的情况,单独加个分隔符的入参更好
id = id.startsWith('-') ? id. substring(1) : id id = id.replace(/\[name\]/g, fName).split('/').slice(-1)[0];
Sorry, something went wrong.
No branches or pull requests
vite-plugin-svg-icons/packages/core/src/index.ts
Line 266 in 7550357
当
symbolId
需要设置成[dir]-[name]
,且非嵌套目录的情况下The text was updated successfully, but these errors were encountered: