ionic3热更新

npm install -g cordova-hot-code-push-cli

cd 你的项目路径

cordova plugin add cordova-hot-code-push-plugin

根目录创建cordova-hcp.json

{

  "autogenerated": true,

  "name": "ionichot",

  "min_native_interface": 1,

  "content_url": "http://10.1.3.114/www/",

  "ios_identifier": "https://itues.apple.com/cn/***",

  "update": "now",

  "release": "2018.07.17-16.28.12"

}

config.xml添加

   

       

       


cordova-hcp build

cordova build ios/android

测试:

cordova-hcp build

你可能感兴趣的:(ionic3热更新)