Answer the question
In order to leave comments, you need to log in
Webpack url, file-loader?
The link does not generate correctly, how to fix it?
test: /\.(ttf|eot|woff(2)?)$/,
loader: "file-loader?name=[md5:hash:base64:12].[ext]&&publicPath=../../"
@font-face {
font-family: PTSans;
font-weight: 400;
src: local("PT Sans"), url("~fonts/PTSans.eot?#iefix") format("embedded-opentype"), url("~fonts/PTSans.woff") format("woff"), url("~fonts/PTSans.ttf") format("truetype");
}
@font-face {
font-family: PTSans;
font-weight: 400;
src: local("PT Sans"), url(..\..\t3ZDiSmOxdUZ.eot?#iefix) format("embedded-opentype"), url(..\..\1UkE3C9ceFy4.woff) format("woff"), url(..\..\1eoudhJt15yQ.ttf) format("truetype");
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question