assetsPublicPath 区分 .net 或者.cn, .cn下路径资源是https://xxx/gitrepo/biomart_a..., .net下路径资源是https://xxx/gitrepo/biomart_a..._develop/dist/; 多了个_develop,应该怎么写?
不能用location.href.indexOf('cn') > -1, 会报错
build: { // Template for index.html index: path.resolve(__dirname, '../dist/index.html'), // Paths assetsRoot: path.resolve(__dirname, '../dist'), assetsSubDirectory: 'static', assetsPublicPath: 'https://xxx/gitrepo/biomart_admin/dist/' }
白板的微信
相关分类