Closed beyourselfm closed 2 years ago
Hi, you can configure SVGO by passing the svgoConfig param to svgLoader(). See https://github.com/jpkleemans/vite-svg-loader#svgo-configuration
svgoConfig
svgLoader()
svgLoader({ svgoConfig: { plugins: [ { removeAttrs: { attrs: ['fill'] } } ] } })
Hi, you can configure SVGO by passing the
svgoConfig
param tosvgLoader()
. See https://github.com/jpkleemans/vite-svg-loader#svgo-configuration