The vue project introduces a custom font file that is too large

problem description

the vue project introduces that the custom font file is too large, and the font file ttf is 8m. Causes the website to load very slowly

the environmental background of the problems and what methods you have tried

related codes

/ / Please paste the code text below (do not replace the code with pictures)

what result do you expect? What is the error message actually seen?

is there any way to compress font files? If you look at the words used by others, you don"t know how to use them. Yes, please let me know

Jun.29,2021

ider.org/" rel=" nofollow noreferrer "> http://font-spider.org/

create a html file using custom fonts, and then package the appropriate fonts you need. Just use the packaged fonts directly in vue.


do not directly quote all fonts, use


I also encounter this problem, how does the landlord solve it?


want to know how to solve the problem in the end, I also encountered the same problem

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b302c8-2bd07.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b302c8-2bd07.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?