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

🐛 [BUG]build后dist/index.html中 headScripts中的js的路径变成了反斜杠 #11369

Open
echoyl opened this issue Oct 14, 2024 · 0 comments

Comments

@echoyl
Copy link

echoyl commented Oct 14, 2024

🐛 bug 描述

config中设置

{
  headScripts: [
    // 解决首次加载时白屏的问题
    { src: join(PUBLIC_PATH, 'scripts/loading.js'), async: true },
  ]
}

产物的index.html 中变成

<script async src="\PUBLIC_PATH\scripts\loading.js"></script>

📷 复现步骤 | Recurrence steps

🏞 期望结果 | Expected results

反斜杠变成斜杠

© 版本信息

  • Ant Design Pro 版本: [最新]
  • Umi v4.3.24
  • 浏览器环境
  • 开发环境 [e.g. mac OS]

🚑 其他信息

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

1 participant