vue項目build後font-awesome不顯示問題

解決辦法:vue

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

 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     }
相關文章
相關標籤/搜索