How to add a local cordova plugin with ionic / ionic 2 / ionic 3 / ionic 4 / ionic 5?

后端 未结 2 613
礼貌的吻别
礼貌的吻别 2020-12-03 13:19

I currently develop an app with ionic, and my cordova plugin in the same time. I wanted to know how to use the file plugins/fetch.json to update my plugin from

相关标签:
2条回答
  • 2020-12-03 13:57

    To add a local plugin with ionic :

    ionic cordova plugin add /path/to/my/plugin/my.plugin.folder.here/
    

    to remove it :

    ionic cordova plugin remove my.plugin.folder.here
    

    But to update it it's another problem. Actually I'm removing and installing it again after each edit. Good luck ;)

    EDIT

    If you are using a previous version of ionic cli, and it doesn't work, change the commands to the following :

    ionic plugin add /path/to/my/plugin/my.plugin.folder.here/
    

    and

    ionic plugin remove my.plugin.folder.here
    
    0 讨论(0)
  • 2020-12-03 14:13

    If you are using plugman then

    plugman install --platform android --project path/to/your/ionicapp/platforms/android --plugin /Path/to/your/cordova-plugin/MyDemo/
    

    will install the plugin, read other options in project's readme.

    0 讨论(0)
提交回复
热议问题