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.
This commit is contained in:
pengx17
2025-04-22 07:27:11 +00:00
parent 19c06a2821
commit 8fdb00e0ab

View File

@@ -202,7 +202,7 @@ export function createHTMLTargetConfig(
},
{
test: /\.(ttf|eot|woff|woff2)$/,
type: IN_CI ? 'asset/inline' : 'asset/resource',
type: 'asset/resource',
},
{
test: /\.txt$/,