提交 ede67019 编写于 作者: fxy060608's avatar fxy060608

feat(h5): add UNI_H5_BASE

上级 2e917e88
......@@ -15,5 +15,6 @@ declare namespace NodeJS {
UNI_NVUE_STYLE_COMPILER: 'uni-app' | 'weex'
UNI_APP_CODE_SPLITING?: 'true'
UNI_AUTOMATOR_WS_ENDPOINT?: string
UNI_H5_BASE?: string
}
}
......@@ -31,7 +31,7 @@ export function createConfig(
}
options.base = base!
return {
base,
base: process.env.UNI_H5_BASE || base,
root: process.env.VITE_ROOT_DIR,
// TODO 临时设置为__static__,屏蔽警告:https://github.com/vitejs/vite/blob/824d042535033a5c3d7006978c0d05c201cd1c25/packages/vite/src/node/server/middlewares/transform.ts#L125
publicDir: config.publicDir || '__static__',
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册