搜索了半天,没有找到解决方法,求大神解答,万分感谢
bug
css
@font-face {
font-family: 'icomoon';
src: url('@{icons-font-path}/icomoon.eot?v=@{icons-version}');
src: url('@{icons-font-path}/icomoon.eot?v=@{icons-version}#iefix') format('embedded-opentype'),
url('@{icons-font-path}/icomoon.ttf?v=@{icons-version}#iefix') format('truetype'),
url('@{icons-font-path}/icomoon.woff?v=@{icons-version}') format('woff'),
url('@{icons-font-path}/icomoon.svg?v=@{icons-version}#icomoon') format('svg');
font-weight: normal;
font-style: normal;
}
webpack
{
test: /\.(ttf|eot|svg|woff)(\?v=[0-9]\.[0-9]\.[0-9])?$/,
loader: 'file-loader?name=/fonts/[name].[ext]',
}
字体应该用url-loader啊