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
https://github.com/vbenjs/vite-plugin-svg-icons/blob/7550357300793b96b3561fc708899b9f4309e906/packages/core/src/index.ts#L270C4-L270C38
用了FName 导致拿到的名称即使配置成
symbolId: '[name]',
也会永远存在 path
应该是
export function createSymbolId(name: string, options: ViteSvgIconsPlugin) { const { symbolId } = options if (!symbolId) { return name } let id = symbolId let fName = name const { fileName = '', dirName } = discreteDir(name) if (symbolId.includes('[dir]')) { id = id.replace(/\[dir\]/g, dirName) if (!dirName) { id = id.replace('--', '-') } fName = fileName } id = id.replace(/\[name\]/g, fileName) //这样的吧 return id.replace(path.extname(id), '') }
The text was updated successfully, but these errors were encountered:
+1, html里面会显示全路径,
Sorry, something went wrong.
No branches or pull requests
https://github.com/vbenjs/vite-plugin-svg-icons/blob/7550357300793b96b3561fc708899b9f4309e906/packages/core/src/index.ts#L270C4-L270C38
用了FName 导致拿到的名称即使配置成
symbolId: '[name]',
也会永远存在 path
应该是
The text was updated successfully, but these errors were encountered: