vue项目build后font-awesome不显示问题

解决办法:

修改build目录下的utils.js:添加 publicPath: '../../'

 1     // Extract CSS when that option is specified
 2     // (which is the case during production build)
 3     if (options.extract) {
 4       return ExtractTextPlugin.extract({
 5         use: loaders,
 6         fallback: 'vue-style-loader',
 7         publicPath: '../../'
 8       })
 9     } else {
10       return ['vue-style-loader'].concat(loaders)
11     }

 

posted @ 2018-06-05 16:42  wuln  阅读(443)  评论(0编辑  收藏  举报