@lark-apaas/coding-template-vite-react 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -7,8 +7,11 @@ OUTPUT_RESOURCE="$ROOT/dist/output_resource"
|
|
|
7
7
|
OUTPUT_STATIC="$ROOT/dist/output_static"
|
|
8
8
|
|
|
9
9
|
# 映射平台环境变量到 preset 期望的变量名
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
# MIAODA_APP_ID → /app/<appId> 作为客户端 base path
|
|
11
|
+
# MIAODA_RESOURCE_CDN_PREFIX → assets (JS/CSS) 的 CDN 前缀
|
|
12
|
+
# CLI 注入约定见 miaoda-cli src/services/deploy/modern/atoms/build.ts
|
|
13
|
+
export CLIENT_BASE_PATH="${MIAODA_APP_ID:+/app/$MIAODA_APP_ID}"
|
|
14
|
+
export ASSETS_CDN_PATH="${MIAODA_RESOURCE_CDN_PREFIX:-/}"
|
|
12
15
|
export NODE_ENV="${NODE_ENV:-production}"
|
|
13
16
|
|
|
14
17
|
# 清理
|