feat: 优化按路由导出多html的title逻辑

This commit is contained in:
harrywan 2021-11-09 20:00:25 +08:00
parent bd4eba275f
commit 0f0c646ced

View File

@ -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
};