Disclaimer: This article is a blogger original article, shall not be reproduced without the bloggers allowed. https://blog.csdn.net/qq_40639990/article/details/80675073
1. Problem: When introduced ElementUI, it will not report a loader can handle (handle) so that files ending with .ttf
Solution: First, do not panic, encountered an error to look at, read on to find the English translation of what the software, and start Baidu search can get rid of the file laoder
Then to lower your webpack configuration file the following code.
{
test:
/
\.
(
woff
|
woff2
|
svg
|
eot
|
ttf
)
\??
.
*
$
/,
loader:
'file-loader',
options: {
name:
'[name].[ext]?[hash]'
}
},