vscode作为一个轻量级编辑器,有其独特的魅力。

  1. 安装Ionic:npm install -g ionic
  2. 安装Apache Ripple模拟器: npm install -g ripple-emulator
  3. 生成Ionic项目:
    $ ionic start myApp [blank|tabs|sidemenu]
    我用的:
    $ ionic start myApp tabs
  4. 添加平台 
    cordova build --release android
  5. 用VsCode打开myApp
     
  6. 设置tasks:
    {
    	"version": "0.1.0",
    
    	"command": "ripple",
    
    	"isShellCommand": true,
    
    	"showOutput": "always",
    
    	"args": ["emulate","--path","c:\\Users\\Administrator\\myApp\\www"]
    }
    
  7. ctrl+shift+b:启动ripple模拟器预览myapp

相关文章:

  • 2018-04-25
  • 2021-10-11
  • 2022-12-23
  • 2021-08-06
  • 2021-07-12
  • 2021-10-14
  • 2021-10-14
猜你喜欢
  • 2021-08-27
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-02
  • 2022-12-23
  • 2021-07-09
相关资源
相似解决方案