1、静态文件路径错误
找到config文件夹下的index.js文件修改以下位置

assetsPublicPath: './',

vue打包后路径404问题解决方法

2、在css中写的background-img的路径出错 需要找到build文件夹下的utils.js,修改以下位置

    publicPath:'../../'

vue打包后路径404问题解决方法

3、修改build文件夹下的webpack.prod.conf.js 修改以下位置

publicPath: './',

vue打包后路径404问题解决方法

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-07-22
  • 2021-08-09
  • 2021-09-30
  • 2022-12-23
  • 2022-12-23
  • 2021-10-03
猜你喜欢
  • 2021-11-30
  • 2021-10-01
  • 2022-12-23
  • 2021-05-19
相关资源
相似解决方案