cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrew Grieve <>
Subject Re: using node modules in cordova plugins?
Date Wed, 03 Jul 2013 03:05:33 GMT
Hmm, I think it would work if you checked in the node_modules and then put
the paths to the js files you want in your plugin.xml. Our require paths
for the modules a bit different though, and might not work well if you have
one npm module requiring another one.

Maybe a better option in this case would be to package your plugin's JS
into a single .js file and use that in your plugin.xml.

On Tue, Jul 2, 2013 at 6:53 PM, Don Coleman <> wrote:

> I ripped a bunch of Javascript code out of my Cordova NFC plugin and
> created a NPM so I could reuse the code elsewhere.
> Now, that the code is improved and tested, I'd like the plugin to use the
> code from the node package.
> Are there good ways to do this? Have you seen any examples?

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message