-
Notifications
You must be signed in to change notification settings - Fork 112
New issue
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
color值不生效 #86
Comments
When I encountered the same problem as you, how did you solve it? |
add code createSvgIconsPlugin({
// 指定需要缓存的图标文件夹
iconDirs: [path.resolve(process.cwd(), 'src/assets/icons')],
// 指定symbolId格式,这里需要与组件找那个的 symbolId 对应
symbolId: 'icon-[dir]-[name]',
/**
* custom dom id
* @default: __svg__icons__dom__
*/
customDomId: '__svg__icons__dom__',
+ svgoOptions: {
+ full: true,
+ plugins: [
+ {
+ name: "removeAttrs",
+ params: {
+ attrs: "fill"
+ }
+ }
+ ]
+ },
}), batch remove fill attr 洋文不好, 加这个配置就可以了, 删除 fill attr 就可以了, 参考 #70 |
Open
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The text was updated successfully, but these errors were encountered: