How to solve the problem of white screen after vue-cli packing?

dist files generated by the latest version of scaffolding

clipboard.png

index.html404

clipboard.png


needs to be opened in the server. You should just double-click to open index.html. Set up a local server locally, and just pull in the contents of dist


if you don't need to add baseUrl:'. /'to vue.config.js. The default is /


start a service test on your own computer

< H1 > http-server-p-8080 < / H1 >

is it normal when developing? Check whether the request is completed through Google browser Network

Menu