From 0f0c646ceda2492fcc8aaf5b2abbc2c9f6224303 Mon Sep 17 00:00:00 2001 From: harrywan Date: Tue, 9 Nov 2021 20:00:25 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BC=98=E5=8C=96=E6=8C=89=E8=B7=AF?= =?UTF-8?q?=E7=94=B1=E5=AF=BC=E5=87=BA=E5=A4=9Ahtml=E7=9A=84title=E9=80=BB?= =?UTF-8?q?=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/plugins/commands/webpackConfig/html.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/fes-preset-built-in/src/plugins/commands/webpackConfig/html.js b/packages/fes-preset-built-in/src/plugins/commands/webpackConfig/html.js index 2a81af68..0528e133 100644 --- a/packages/fes-preset-built-in/src/plugins/commands/webpackConfig/html.js +++ b/packages/fes-preset-built-in/src/plugins/commands/webpackConfig/html.js @@ -63,9 +63,9 @@ export default async function createHtmlWebpackConfig({ const _fileName = `${route.path.slice(1) || 'index'}.html`; if (_fileName !== 'index.html') { const _htmlOptions = { - title: 'fes.js', - filename: _fileName, ...config.html, + title: route?.meta?.title || config.html.title || 'fes.js', + filename: _fileName, templateParameters: resolveDefine(config, true), mountElementId: config.mountElementId };