Webpack icon font reference problem

The

font folder is placed in src and packaged through webpack. After packaging through
, font is placed under the dist folder, but the reference address is not the same as the packaged address. There is an extra css/ path in front

actually it is OK to put it in static, but if there is a problem in the background, you can only put it in src
related configuration as shown in figure

May.20,2022
  • How vue-cli3.0 configures url-loader?

    question: using vue-cli3 to initialize the project, does it not include webpack-related configuration? How should you configure loader such as url-loader when using vue.config.js? add: css background picture and font icon introduce error ...

    Jan.14,2022
Menu