Webpack configuration causes the font icon to fail to be displayed. webpack cannot be displayed.

Source: Internet
Author: User

Webpack configuration causes the font icon to fail to be displayed. webpack cannot be displayed.

Problem: when using the font icon during project development, the following error is reported:

All the font icons cannot be properly displayed, and an error is returned indicating that the font cannot be decoded.

Solution:After searching for a long time, I finally found the error caused by manually adding the following code During webpack configuration: delete it in the webpack. base. conf. js file.

{Test:/\. (eot | svg | ttf | woff | woff2 )(\? \ S *)? $/, Loader: 'file-loader '},

Summary:

In fact, the configuration file automatically generated using vue-cli has compiled the font icon file, and the self-written file conflicts with the automatically generated configuration file.

The solution to the failure to display the font icons caused by the preceding webpack configuration is to share all the content with you in the editor. I hope you can give us a reference and support the help house.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.