Browse Source

修改打包根路径

wangkang3 4 years ago
parent
commit
8caf5c2550
1 changed files with 2 additions and 2 deletions
  1. 2 2
      ebc-middle-platform/.aid/aid.js

+ 2 - 2
ebc-middle-platform/.aid/aid.js

51
  beforeBuild(config) {
51
  beforeBuild(config) {
52
    let result = rules(config)
52
    let result = rules(config)
53
    result.output = {
53
    result.output = {
54
      publicPath: '/'
54
      publicPath: '/energy/'
55
    }
55
    }
56
    return result
56
    return result
57
  },
57
  },
58
  outputPrefix: '/' // 构建后index.html中资源路径的前缀
58
  outputPrefix: '/energy/' // 构建后index.html中资源路径的前缀
59
}
59
}