We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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 preview 打包成功生成dist文件夹,使用file协议可以打开dist目录下的index文件出现登录界面,可是使用http://localhost:9526/访问时页面空白
npm run preview 使用浏览器打开 http://localhost:9526/
The text was updated successfully, but these errors were encountered:
为什么多了一个 . ?
.
Sorry, something went wrong.
不知道为啥,运行preview就自动生成了这个浏览网址
现在我也出现了这种情况 npm run preview -- --report 以后出现的网址是> Preview at http://localhost:9526./
我也遇到这个问题了~~~ 这是为嘛? 你们解决了吗?
出现 http://localhost:9526./ 的原因是设置了publicPath为'./', 改成 '/'即可 , 运行 npm run preview -- --report 即可查看
No branches or pull requests
Bug report(问题描述)
使用npm run preview 打包成功生成dist文件夹,使用file协议可以打开dist目录下的index文件出现登录界面,可是使用http://localhost:9526/访问时页面空白
Steps to reproduce(问题复现步骤)
npm run preview
使用浏览器打开 http://localhost:9526/
Screenshot or Gif(截图或动态图)
Other relevant information(格外信息)
The text was updated successfully, but these errors were encountered: