vue打包前的配置:

项目目录下--> config文件夹---> index.js:

build:  {

  assetsPublickPath:  './',   // 设置成相对路径   '/' 改为 './'

  productionSourceMap: false, // 开发环境默认为true , 打包生产代码前设置为false

}

 

 

 

vue打包后运行在本地/非服务器端环境的访问路径

 

PC端: file:///E:/program files/www/index.html#/index

移动端:file:///aaa/bbb/www/index.html#/index

 

相关文章:

  • 2021-07-27
  • 2021-10-20
  • 2021-04-13
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-30
猜你喜欢
  • 2021-11-30
  • 2022-01-03
  • 2021-06-04
  • 2021-11-12
  • 2022-12-23
  • 2021-06-18
  • 2022-12-23
相关资源
相似解决方案