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
svgBuilder.js 这个有问题,如果我的标签里面稍微带点东西就会导致svg标签无法显示....太坑了
The text was updated successfully, but these errors were encountered:
export const svgBuilder = (path, perfix = 'icon') => { if (path === '') return idPerfix = perfix const res = findSvgFile(path) console.log(res.length,'length') // console.log(res) // const res = [] return { name: 'svg-transform', transformIndexHtml(html) { return html.replace( '', <body> <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" style="position: absolute; width: 0; height: 0"> ${res.join('')} </svg> ) }, } }
<body> <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" style="position: absolute; width: 0; height: 0"> ${res.join('')} </svg>
Sorry, something went wrong.
看不懂,你解决下。
No branches or pull requests
svgBuilder.js 这个有问题,如果我的标签里面稍微带点东西就会导致svg标签无法显示....太坑了
The text was updated successfully, but these errors were encountered: