vue webpack打包后 iconfont引入路径不对

vue webpack打包后 iconfont引入路径不对vue

{
test : /\.(woff2?|eot|ttf|otf)(\? . *)? $ / ,
loader : 'url-loader' ,
options : {
limit : 80000 ,
name : utils . assetsPath ( 'fonts/[name].[hash:7].[ext]' )
}
}

将 limit 的值 调的大些 至少比你的字体文件大webpack

 

 

相关文章
相关标签/搜索