Vue project yarn build page white screen solution after packaging

I use yarn build to package and open the page with a white screen.

You only need to add a new file at package.jsonthe same level vue.config.jsand write this string of code in it

Just repackage it

代码如下

// vue.config.js
module.exports = {
    publicPath: './',
}

Guess you like

Origin blog.csdn.net/m0_64547949/article/details/127992922