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

build 出来的项目无法使用 #14

Open
x1911 opened this issue Nov 26, 2022 · 3 comments
Open

build 出来的项目无法使用 #14

x1911 opened this issue Nov 26, 2022 · 3 comments

Comments

@x1911
Copy link

x1911 commented Nov 26, 2022

纯净版本,npm install 后运行 npm run build , 得到的 dist 用 http-server 启动一片空白,查看是 404 错误,改地址后依然无效

@imkgsam
Copy link

imkgsam commented Apr 25, 2023

如何解决?

@mynetfan
Copy link

本地预览时修改.env文件中的VITE_PUBLIC_PATH为/

@liuyanlingA
Copy link

纯净版本,npm install 后运行 npm run build , 得到的 dist 用 http-server 启动一片空白,查看是 404 错误,改地址
如何解决

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

4 participants