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

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

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

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

猜你喜欢

转载自www.cnblogs.com/merseyalma/p/9567108.html