1. 首页
  2. 数据库
  3. 其它
  4. nativescript dev appconfig:Nativescript CLI运行时配置注入器 源码

nativescript dev appconfig:Nativescript CLI运行时配置注入器 源码

上传者: 2021-02-27 05:13:51上传 ZIP文件 3.72KB 热度 14次
nativescript-dev-appconfig 在Nativescript CLI命令中增加了对--env.config参数的支持。 --env.config 将加载$ProjectDir/config/.json并将其注入为$ProjectDir/app/config.json 如果config包含“ app_name”键,则本机应用程序将更新其产品名称。 配置文件作为“ config.json”注入到应用程序中,以便可以在运行时加载。 安装: tns plugin add nativescript-dev-appconfig 例: tns prep
下载地址
用户评论