简体   繁体   中英

Is it possible to rename a cordova plugin?

I have cloned cordova InAppBrowser to my git. But I want to rename it something line foo so that the invoking methods change on my repo after installation using cordova cli

eg cordova.InAppBrowser.open > cordova.foo.open

I Think this file needs to be changed

inappbrowser.js

Edit the plugin.xml and change:

<clobbers target="cordova.InAppBrowser.open" />

to

<clobbers target="cordova.foo.open" />

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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