标签:turn concat ase else ack load 配置 ring during
一、修改配置文件
1.build->utils.js
增加 :publicPath:‘../../‘
// Extract CSS when that option is specified // (which is the case during production build) if (options.extract) { return ExtractTextPlugin.extract({ use: loaders, fallback: ‘vue-style-loader‘, publicPath:‘../../‘ //解决打包后icon异常问题 }) } else { return [‘vue-style-loader‘].concat(loaders) }
2.config->index.js
增加:build中将 assetsPublicPath: ‘/‘, 替换为 assetsPublicPath: ‘./‘
解决打包后资源找不到问题
标签:turn concat ase else ack load 配置 ring during
原文地址:https://www.cnblogs.com/liuboyuan/p/13054548.html