mirror of
https://github.com/WeBankFinTech/fes.js.git
synced 2025-04-05 03:05:07 +08:00
fix: 修复mountElementId找不到问题
This commit is contained in:
parent
41ab43d8a1
commit
2482053023
@ -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) {
|
||||
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user