Skip to content

Commit

Permalink
fix: 修复mountElementId找不到问题
Browse files Browse the repository at this point in the history
  • Loading branch information
wanchun committed Oct 29, 2024
1 parent 4184a70 commit 8821438
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ export default async function createHtmlWebpackConfig({
title: 'fes.js',
filename: '[name].html',
...config.html,
templateParameters: resolveDefine(config, true),
mountElementId: config.mountElementId
templateParameters: Object.assign(resolveDefine(config, true), { mountElementId: config.mountElementId }),
};

if (isProd) {
Expand Down Expand Up @@ -61,8 +60,7 @@ export default async function createHtmlWebpackConfig({
...config.html,
title: route?.meta?.title || config.html.title || 'fes.js',
filename: _fileName,
templateParameters: resolveDefine(config, true),
mountElementId: config.mountElementId
templateParameters: Object.assign(resolveDefine(config, true), { mountElementId: config.mountElementId })
};
webpackConfig
.plugin(_fileName)
Expand Down

0 comments on commit 8821438

Please sign in to comment.