alibaba / ice

🚀 ice.js: The Progressive App Framework Based On React(基于 React 的渐进式应用框架)

Home Page:https://ice.work

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

构建后的build 文件 点击index.html 直接访问提示路径报错

dengying918 opened this issue · comments

Describe the bug

构建后的build 文件 点击index.html 直接访问提示路径报错
企业微信截图_17128887018580

Expected behavior

构建后的build 文件 点击index.html 直接访问提示路径报错
企业微信截图_17128887018580

Actual behavior

No response

Version of ice.js

3.0

Content of build.json or ice.config.mts

No response

Additional context

No response

参考 https://v3.ice.work/docs/guide/basic/config/#publicpath
window 下可以试试将 publicPath 设置成 ./,如果最终是要部署到服务器的,需要配置成部署的服务器地址

路由设置为 hash 这样静态页面访问就没问题了