From a7252d16d1d2e01e6f0898b06c0aa6ee9c6d04ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Chuailei000=E2=80=9D?= <2280131253@qq.com> Date: Fri, 15 Jul 2022 19:04:39 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8Delement-ui=E5=AD=97?= =?UTF-8?q?=E4=BD=93=E5=9B=BE=E6=A0=87=E5=8A=A0=E8=BD=BD=E5=A4=B1=E8=B4=A5?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vue.config.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/vue.config.js b/vue.config.js index 2782df85e..ea5140310 100644 --- a/vue.config.js +++ b/vue.config.js @@ -106,6 +106,20 @@ module.exports = { // when there are many pages, it will cause too many meaningless requests config.plugins.delete('prefetch') + config.module + .rule('fonts') + .test(/.(ttf|otf|eot|woff|woff2)$/) + .use('url-loader') + .loader('url-loader') + .tap(options => { + options = { + limit: 50000, + name: '/public/fonts/[name].[ext]' + } + return options + }) + .end() + // set svg-sprite-loader config.module .rule('svg')