本文介绍了如何添加离子/离子2 /离子3 /离子4的本地cordova插件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我目前正在使用ionic和我的cordova插件开发应用程序。我想知道如何使用文件 plugins / fetch.json
从本地文件系统更新我的插件。有什么想法?
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 a local file system. Any idea ?
推荐答案
使用ionic添加本地插件:
To add a local plugin with ionic :
ionic cordova plugin add /path/to/my/plugin/my.plugin.folder.here/
将其删除:
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 ;)
编辑
如果您使用的是以前的版本离子cli,它不起作用,将命令更改为以下:
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/
和
ionic plugin remove my.plugin.folder.here
这篇关于如何添加离子/离子2 /离子3 /离子4的本地cordova插件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!