@x-drive/launch-detect
TypeScript icon, indicating that this package has built-in type declarations

1.1.4 • Public • Published

自动监测入口文件

xlab 用于获取指定的类型入口文件

平台入口文件配置

/**平台入口 */
type PlatformEntrance = {
    [platform: string]: string;
}

支持的平台类型有:

  • desktop pc/桌面
  • mobile 移动端

模块启用需要设置项目中的 launchRouter 配置项

  • 直接声明平台入口 对于只有一个业务的服务,可以直接指定平台入口文件
  • 指定某域名对应的平台入口 当服务同时绑定了多个服务域名时,可以根据域名来单独指定不同的域名下的不同平台入口文件

Readme

Keywords

none

Package Sidebar

Install

npm i @x-drive/launch-detect

Weekly Downloads

3

Version

1.1.4

License

ISC

Unpacked Size

7.35 kB

Total Files

5

Last publish

Collaborators

  • edwinchen