vue项目webpack打包问题解决方案汇总

1.打包后项目空白

修改config文件夹下index.js中的assetsPublicPath为'./'(默认为‘/’)

2.背景图片的引用问题

修改build文件夹下的utils.js,加入如下代码

文章参考自:https://blog.csdn.net/wang1006008051/article/details/78066140

                      https://www.cnblogs.com/luosiding/p/8268837.html

猜你喜欢

转载自blog.csdn.net/weixin_43788602/article/details/88074293