简体   繁体   English

如何在m-generator-ionic项目中添加离子插件

[英]how to add a ionic plugin in a m-generator-ionic project

i would like to use the following QR-code plugin in my "m-generator-ionic" project: http://ionicframework.com/docs/v2/platform/barcode/ 我想在我的“ m-generator-ionic”项目中使用以下QR码插件: http : //ionicframework.com/docs/v2/platform/barcode/

in ionic framework, the command to be executed to install it is 在离子框架中,要执行的安装命令是

$ ionic plugin add phonegap-plugin-barcodescanner

what is the equivalent in the m-generator-ionic world ? m-generator-ionic世界中的等效项是什么?

I assume you are referring to generator-m-ionic . 我假设您指的是generator-m-ionic

You can find a guide here which describes how to write any cordova statement. 您可以在此处找到描述如何编写任何cordova语句的指南。

In your specific case this would be 在您的特定情况下,这将是

$ gulp --cordova 'plugin add phonegap-plugin-barcodescanner'

And if you want to save it to your config.xml: 如果要将其保存到config.xml中:

$ gulp --cordova 'plugin add phonegap-plugin-barcodescanner --save'

Let me know if this was helpful. 让我知道这是否有帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM