vue-cli run build 后 背景图片 css background:url('path') 加载问题

1、在webpack.prod.conf.js文件里output里面添加:publicPath:'./' 2、在utils.js文件里添加 publicPath:'../../' 3、在config/index.js文件里,添加assetsPublicPath:'./' run build 之后 图片 正常显示  成功!
相关文章
相关标签/搜索