From 8fdb00e0ab6b05de6910211d2758cba83174f06f Mon Sep 17 00:00:00 2001 From: pengx17 Date: Tue, 22 Apr 2025 07:27:11 +0000 Subject: [PATCH] fix(core): do not need to inline fonts (#11880) The fonts are always loaded via url thus it is not needed to have fonts inlined. Inlining fonts will increase the size of bundled files. --- tools/cli/src/webpack/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/cli/src/webpack/index.ts b/tools/cli/src/webpack/index.ts index 976ee5c74..5d8f5908e 100644 --- a/tools/cli/src/webpack/index.ts +++ b/tools/cli/src/webpack/index.ts @@ -202,7 +202,7 @@ export function createHTMLTargetConfig( }, { test: /\.(ttf|eot|woff|woff2)$/, - type: IN_CI ? 'asset/inline' : 'asset/resource', + type: 'asset/resource', }, { test: /\.txt$/,