Closed wsafight closed 2 weeks ago
最近的更改专注于在 config.ts
文件中引入和配置 PUBLIC_PATH
变量,以便在应用程序不在根目录时指定公共路径。该变量用于动态设置 publicPath
属性,并更新脚本源路径,以确保在不同部署环境中的正确性和兼容性。
文件 | 更改摘要 |
---|---|
config/config.ts |
引入了 PUBLIC_PATH 变量,初始化为 '/' ,并调整了 publicPath 和脚本源路径 |
在代码的土地上,路径交织,
publicPath
现在已对齐。
斜杠设置,路径清晰,
兼容性不会消失。
兔子的故事,迅速而明亮,
设置路由,工作正当。 🌟
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
🎊 PR Preview has been successfully built and deployed to https://ant-design-pro-preview-pr-11289.surge.sh
您好,我是刘学炜,谢谢您的邮件,我会尽快查收并回复。祝您生活愉快
使用 PUBLIC_PATH 打包好了就会有问题呢,对新同学不太友好。 是否有其他的解法,帮助 scripts/loading.js 添加前缀
Summary by CodeRabbit