From 74ce3dc8b60afff99d5d93c8344beb1dce080f18 Mon Sep 17 00:00:00 2001 From: liudianxin Date: Thu, 23 Apr 2020 17:24:41 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9base=E6=96=87=E4=BB=B6element?= =?UTF-8?q?=E5=AD=97=E4=BD=93limit?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build/webpack.base.conf.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build/webpack.base.conf.js b/build/webpack.base.conf.js index 0becfc6..4a6deea 100644 --- a/build/webpack.base.conf.js +++ b/build/webpack.base.conf.js @@ -68,11 +68,12 @@ module.exports = { name: utils.assetsPath('media/[name].[hash:7].[ext]') } }, + // limit限制100k,超过100k请求网络资源 { test: /\.(woff2?|eot|ttf|otf)(\?.*)?$/, loader: 'url-loader', options: { - limit: 10000, + limit: 100000, name: utils.assetsPath('fonts/[name].[hash:7].[ext]') } } -- 2.26.0