Closed EditYJ closed 3 years ago
现象: 可复现例子: https://github.com/EditYJ/paixin-media-ssr
目前我的解决方案是修改webpack配置
config.module.rule('images').test(/\.(jpe?g|png|gif)(\?[a-z0-9=.]+)?$/)
去除images规则中对于字体文件的筛选,因为配置中已经对字体做了打包配置的处理。
具体可见此次提交: https://github.com/EditYJ/paixin-media-ssr/commit/3d52ca223c27b83447c2ffc80bbccd8f789f6763#diff-e8e9eea3276b2de9a74fd257902dc74c846f6fc8653bbddf45d738b71201f93d
https://stackoverflow.com/questions/30442319/failed-to-decode-downloaded-font
貌似是字体规范的问题
为了减少成本,这里框架统一修改,不处理字体文件。fix by version 5.5.17
现象: 可复现例子: https://github.com/EditYJ/paixin-media-ssr