解决vue 打包发布去#和页面空白的问题

上传:asmk57303 浏览: 12 推荐: 0 文件:PDF 大小:35.81KB 上传时间:2020-12-31 18:49:35 版权申诉
1.vue项目中config文件下index.js中打包配置 build: { // Template for index.html index: path.resolve(__dirname, '../yiTownWebApp/index.html'), // Paths assetsRoot: path.resolve(__dirname, '../yiTownWebApp'), assetsSubDirectory: 'static', assetsPublicPath: '/yiTownWebApp/',//这个地方使用绝对路径很重要 /** * Source Map
上传资源
用户评论