Ionic构建项目命令

安装全局cordova和ionic
npm install -g cordova ionic
创建项目:
ionic start myApp tabs
cd myApp
ionic platform add android
编译项目:
ionic build android
显示连接的手机:
adb devices
在手机上运行:
ionic run android
在模拟器运行:
ionic emulate android
在浏览器中运行:
ionic serve
crosswalk打包提升性能3~5倍。但是生成的包比较大。
集成crosswalk
ionic browser add crosswalk
卸载crosswalk
ionic browser revert android 或者 ionic browser remove crosswalk

2 thoughts on “Ionic构建项目命令

  1. It is truly a great and helpful piece of info. I’m happy that you simply shared this useful information with us. Please keep us informed like this. Thank you for sharing.

发表评论

电子邮件地址不会被公开。 必填项已用*标注