Vite vue3 project package deployment blank page problem handling

 Problem: After the vite vue3 project was packaged and deployed online, it was found to be a blank page problem.

Solution: 1. In our vite.config.js file, check whether there is a path pointing to

                     

                2. View our routing mode and modify the routing mode to createWebHashHistory

                 

                         

                

Summary: The characteristics of vite: fast cold start, no need to wait for packaged instant hot module update, true on-demand compilation, no need to wait for the entire project to be compiled.

 

 

Guess you like

Origin blog.csdn.net/Ct130429/article/details/129956959