From 89f387786da0e4383cf06ee162526db54971f9cf Mon Sep 17 00:00:00 2001
From: zhengyiming <540361168@qq.com>
Date: 星期四, 23 十月 2025 15:21:16 +0800
Subject: [PATCH] fix: s
---
build/plugins.ts | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/build/plugins.ts b/build/plugins.ts
index 03e5af1..07ea4b0 100644
--- a/build/plugins.ts
+++ b/build/plugins.ts
@@ -44,11 +44,12 @@
type Options = {
VITE_LEGACY?: ViteEnv['VITE_LEGACY'];
VITE_COMPRESSION?: ViteEnv['VITE_COMPRESSION'];
+ VITE_WEMAP_KEY?: ViteEnv['VITE_WEMAP_KEY'];
VITE_AppType?: ViteEnv['VITE_AppType'];
};
export function getPluginsList(command: ConfigEnv['command'], options: Options = {}) {
- const { VITE_LEGACY, VITE_COMPRESSION, VITE_AppType } = options;
+ const { VITE_LEGACY, VITE_COMPRESSION, VITE_WEMAP_KEY, VITE_AppType } = options;
// const prodMock = true;
const lifecycle = process.env.npm_lifecycle_event;
console.log(lifecycle, command);
@@ -69,6 +70,8 @@
data: {
title: Config.title,
subMenuIconCssPath: SubMenuManager.SubMenuIconCssPath,
+ WEMAP_KEY: VITE_WEMAP_KEY,
+ isJx: VITE_AppType === 'jx',
},
},
}),
--
Gitblit v1.9.1