Remove unnecessary SVG attributes

This commit is contained in:
James Lyne 2022-01-13 20:09:04 +00:00
parent 9ea3f616c3
commit b12fca100e

View File

@ -23,6 +23,7 @@ export default defineConfig(({ mode }) => {
return { return {
plugins: [vue(), analyze(), svgSpritePlugin({ plugins: [vue(), analyze(), svgSpritePlugin({
symbolId: (name) => `icon--${name}`, symbolId: (name) => `icon--${name}`,
removeAttrs: ['xmlns', 'width', 'height', 'version']
})], })],
base: './', base: './',
server: { server: {