mirror of
https://github.com/vbenjs/vue-vben-admin.git
synced 2025-08-27 20:38:54 +08:00
fix: build error
This commit is contained in:
@@ -16,13 +16,8 @@ interface CreateConfigParams {
|
|||||||
configFileName?: string;
|
configFileName?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
function createConfig(
|
function createConfig(params: CreateConfigParams) {
|
||||||
{ configName, config, configFileName }: CreateConfigParams = {
|
const { configName, config, configFileName } = params;
|
||||||
configName: '',
|
|
||||||
config: {},
|
|
||||||
configFileName: GLOB_CONFIG_FILE_NAME,
|
|
||||||
},
|
|
||||||
) {
|
|
||||||
try {
|
try {
|
||||||
const windowConf = `window.${configName}`;
|
const windowConf = `window.${configName}`;
|
||||||
// Ensure that the variable will not be modified
|
// Ensure that the variable will not be modified
|
||||||
@@ -46,5 +41,5 @@ function createConfig(
|
|||||||
export function runBuildConfig() {
|
export function runBuildConfig() {
|
||||||
const config = getEnvConfig();
|
const config = getEnvConfig();
|
||||||
const configFileName = getConfigFileName(config);
|
const configFileName = getConfigFileName(config);
|
||||||
createConfig({ config, configName: configFileName });
|
createConfig({ config, configName: configFileName, configFileName: GLOB_CONFIG_FILE_NAME });
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user