vue+element-ui打包后找不到字体和图标库

在build/utils.js下找到

if (options.extract) {
return ExtractTextPlugin.extract({
use: loaders,
fallback: ‘vue-style-loader’,
publicPath: ‘../../’
})
} else {
return [‘vue-style-loader’].concat(loaders)

加上

publicPath: ‘../../’

You may also like...

发表评论