1.打开webpack.prod.conf.js
publicPath: './',
2.打开webpack.base.conf.js
? './' +config.build.assetsPublicPath
: './' + config.dev.assetsPublicPath
3.打开config->index.js
assetsPublicPath: './',
4.修改背景图不显示,utils.js
publicPath:'../../'
publicPath: './',
? './' +config.build.assetsPublicPath
: './' + config.dev.assetsPublicPath
assetsPublicPath: './',
publicPath:'../../'
本文标题:vue build打包之后页面空白以及背景图片不加载
本文链接:https://www.haomeiwen.com/subject/lzfwkltx.html
网友评论