سؤال

In my previous project, I used cordava 2.X. When I downloaded 3.4.0, I found there are some difference:

1) There is a WWW folder under Application folder: Application/www

2) There is also a platforms folder, within it it has android and ios. They both have www folders.

a) Application/platforms/android/assets/www b) Application/platforms/ios/www

Question:

I am starting to put my HTML5 project into phonegap, but which folder shall I put my HTML5 project in? shall I directly work on Application/www or just ignore it and go to sub-directories?

cheers.

هل كانت مفيدة؟

المحلول

You should use the top level application/www folder. When you build your app using the command line tools such as:

phonegap build android
phonegap build ios

the build process is in charge of updating the plattform-specific www folders. Beware that if you do otherwise, your changes may be overwritten by the build process (if you work directly within the platform-specific www folders).

Best.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top