Skip to content

请问build后,我想直接打开dist的index本地查看效果,需要怎么修改配置? #277

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

Closed
FrontEnd-Hub opened this issue May 31, 2019 · 4 comments
Labels
question Further information is requested

Comments

@FrontEnd-Hub
Copy link

请问build后,我想直接打开dist的index本地查看效果,需要怎么修改配置?

  • build后直接打开index文件资源无法加载显示白屏, 如何修改可以实现纯静态本地查看?
    谢谢!
@FrontEnd-Hub FrontEnd-Hub added the question Further information is requested label May 31, 2019
@sendya
Copy link
Member

sendya commented May 31, 2019

请去阅读 Vue 官方文档

@FrontEnd-Hub
Copy link
Author

image
单纯在vue,config.js中配置,打包报错
image

@sendya
Copy link
Member

sendya commented May 31, 2019

@FrontEnd-Hub #91

@wangshaoan
Copy link

publicPath: process.env.NODE_ENV === 'production'?'':'/', //vue.config.js
// mode: 'history',//路由

@sendya sendya closed this as completed Jul 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants