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

encounter this problem at the same time

use vue inspect-- rule fonts to see

clipboard.png

loader

/2018-12-10*/
font-face
not found

clipboard.png

I see you are using a scss preprocessor, so try changing the path to the referenced eot file relative to the page you are applying.
I also found the cause of the problem when I was translating this src attribute.


https://cli.vuejs.org/zh/conf.

  • 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...

    May.20,2022
Menu