找到config下面的index.js文件

vue 打包添加二级目录

在build中修改assetsSubDirectory这行static前面就是你要添加的二级目录的名称

vue 打包添加二级目录 

打包后你会发现http://127.0.0.1:8080访问不到加上新添加的二级目录http://127.0.0.1:8080/cc0/owe也不行

原因就是owe文件下缺少index.html文件

vue 打包添加二级目录

把根目录下的index文件复制到owe下面就ok了

vue 打包添加二级目录

相关文章:

  • 2022-03-10
  • 2022-12-23
  • 2022-12-23
  • 2021-10-05
  • 2021-08-09
  • 2022-12-23
  • 2021-06-27
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-04-26
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案