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

npm run build打包后静态页面打开空白 #4

Open
YrRedCrew opened this issue Feb 18, 2023 · 2 comments
Open

npm run build打包后静态页面打开空白 #4

YrRedCrew opened this issue Feb 18, 2023 · 2 comments

Comments

@YrRedCrew
Copy link

YrRedCrew commented Feb 18, 2023

hi!打包后的index.html文件,本地打开后空白。该怎么处理呢?
ps:丢到服务器上正常。

@RookieTerry
Copy link

我丢到服务器上也是空白的

@xulsup
Copy link

xulsup commented Jan 9, 2024

dist.zip
作者这个工具挺好用的,我打包了一个 供取用。注意要将web服务的\根目录定义在dist目录内启动。
举例,如果用python的话很简单:
解压dist.zip

cd dist
python3 -m http.server 8000

浏览器访问http://locahost:8000即可.

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

3 participants