Skip to content

@vtj


@vtj / core / ExtensionConfig

Interface: ExtensionConfig

扩展配置

Properties

__adapters__

__adapters__: Record<string, any>

适配类个性参数配置

Defined in

packages/core/src/protocols/shared.ts:105


__BASE_PATH__?

optional __BASE_PATH__: string

项目部署目录

Defined in

packages/core/src/protocols/shared.ts:100


base?

optional base: string

页面路由 base, 默认 '/'

Defined in

packages/core/src/protocols/shared.ts:90


history?

optional history: "hash" | "web"

路由History模式

Defined in

packages/core/src/protocols/shared.ts:85


library

library: string

js库导出名

Defined in

packages/core/src/protocols/shared.ts:74


pageRouteName?

optional pageRouteName: string

页面路由目录名称,默认: page

Defined in

packages/core/src/protocols/shared.ts:95


params?

optional params: Record<string, any>[]

附加参数/数据,用作个性需求

Defined in

packages/core/src/protocols/shared.ts:79


urls

urls: string[]

扩展资源文件路径:js、css文件,js文件要求 umd 格式

Defined in

packages/core/src/protocols/shared.ts:70

Released under the MIT License.