The phonegap.js (cordova.js) as Build will automatically inject it during compile time or not, if I mentioned in my html page.?

  • 1
  • Question
  • Updated 8 years ago
Hi Team,

I read phone gap build doc, They mentioned "Once you've included the necessary assets, remove the phonegap.js (cordova.js) as Build will automatically inject it during compile time.", but I maintained all ".js" files in separate folder.

So I included cordova.js file like .
If I remove that cordova.js file for build means it will inject appropriate place or not?

Thank you,
Siva.
Photo of gudluri siva

gudluri siva

  • 62 Posts
  • 0 Reply Likes

Posted 8 years ago

  • 1
Photo of Amir

Amir

  • 8261 Posts
  • 263 Reply Likes
Just point it to root directory without the physical file. Build will automatically inject it during compile time


<script type="text/javascript" charset="utf-8" src="cordova.js"></script>


-Amir
Photo of gudluri siva

gudluri siva

  • 62 Posts
  • 0 Reply Likes
Hi Amir,
Thank you very much, Now I cleared.
Photo of Kevin B

Kevin B

  • 6 Posts
  • 0 Reply Likes
Thanks very much too Amir...was wrestling with an issue only to find I hadn't included the cordova reference :)