Skip to content
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

当子应用样式引入的字体文件含有括号的时候,会导致样式全部失效。 #1460

Open
YFAnt opened this issue Nov 27, 2024 · 0 comments
Assignees

Comments

@YFAnt
Copy link

YFAnt commented Nov 27, 2024

问题描述

问题的具体描述
有一个字体文件 文件名是这样的

/* 全局字体 */
@font-face {
  font-family: RuiZiAoYunJingShenPinBoJianMianFei-Shan;
  src: url("./RuiZiAoYunJingShenPinBoJianMianFei-Shan(REEJI-PinboGB-Flash)-2.ttf");
}

这个嵌入到micro 解析的时候 会变成

 url("域名+ 路径+ RuiZiAoYunJingShenPinBoJianMianFei-Shan(REEJI-PinboGB-Flash")-2.ttf")

多了一个” 号,导致后续的css失效

image 这个正则有点问题,

复现步骤

上传截图

请上传代码截图、控制台、终端等截图以帮助我们了解您的问题。

复现仓库

请提供一个精简的代码仓库,然后上传到自己的 github,以帮助我们复现您的问题。

环境信息

  • micro-app版本:1.0.0-rc15
  • 主应用前端框架&版本:
  • 子应用前端框架&版本:
  • 构建工具&版本:
@timhub66 timhub66 self-assigned this Nov 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants