@vtj / cli / CreateUniappViteConfigOptions
Interface: CreateUniappViteConfigOptions
Properties
alias?
optional
alias:Record
<string
,string
>
别名
Defined in
packages/cli/src/vite/types.ts:322
buildEnd()?
optional
buildEnd: (error
?) =>void
编译完成时触发回调函数
Parameters
error?
any
Returns
void
Defined in
packages/cli/src/vite/types.ts:339
debug?
optional
debug:boolean
打印最终 vite.config
Defined in
packages/cli/src/vite/types.ts:272
defineConfig()?
optional
defineConfig: (config
) =>UserConfigExport
自定义配置 vite 配置
Parameters
config
UserConfig
Returns
UserConfigExport
Defined in
packages/cli/src/vite/types.ts:277
envPath?
optional
envPath:string
环境配置文件目录位置
Defined in
packages/cli/src/vite/types.ts:282
external?
optional
external:string
[]
不打包的依赖
Defined in
packages/cli/src/vite/types.ts:327
host?
optional
host:string
主机头
Defined in
packages/cli/src/vite/types.ts:297
https?
optional
https:boolean
开启https
Defined in
packages/cli/src/vite/types.ts:302
node?
optional
node:boolean
|PolyfillOptions
开启 nodePolyfills
Defined in
packages/cli/src/vite/types.ts:332
outDir?
optional
outDir:string
打包输出文件夹
Defined in
packages/cli/src/vite/types.ts:312
plugins?
optional
plugins:PluginOption
[]
插件
Defined in
packages/cli/src/vite/types.ts:317
port?
optional
port:number
开发端口
Defined in
packages/cli/src/vite/types.ts:287
previewPort?
optional
previewPort:number
预览端口
Defined in
packages/cli/src/vite/types.ts:292
proxy?
optional
proxy:ProxyConfig
代理
Defined in
packages/cli/src/vite/types.ts:307