svgo配置不生效 #9342
Replies: 4 comments 8 replies
-
给一个复现看看。 |
Beta Was this translation helpful? Give feedback.
-
Hi 我也碰到怀疑是“同样”的问题,我在 umi 中集成 ckeditor5,toolbar 显示不出来,原因是 svg 被强行转化成了base64,并且没有 viewBox 属性导致的。尝试通过 svgo 配置 unenc,无效。请大佬们帮忙看看什么原因? 复现仓库:https://github.com/JeffTrain/umi-ckeditor5
正常结果(不用 umi4,用 umi3 或者 cra,都可以正常显示 toolbar) |
Beta Was this translation helpful? Give feedback.
-
感谢大佬回复!我重新复现了一下,没有任何额外 hack,代码提交到了 https://github.com/orgs/JeffTrain/packages?repo_name=umijs-ckeditor5。
|
Beta Was this translation helpful? Give feedback.
-
感谢大佬的回复,应用了这个改动,svg 依然是被优化成了 base64。提交见: https://github.com/JeffTrain/umijs-ckeditor5/commit/956a61e94246463b6a828731e9eb6c66622529be |
Beta Was this translation helpful? Give feedback.
-
4.x版本把svg默认data改成了base64,我改了svg的配置也没有生效。
Beta Was this translation helpful? Give feedback.
All reactions