I use yarn build to package and open the page with a white screen.
You only need to add a new file at package.json
the same level vue.config.js
and write this string of code in it
Just repackage it
代码如下
// vue.config.js
module.exports = {
publicPath: './',
}