Why are there two Cordova www folders?

后端 未结 2 1772
刺人心
刺人心 2020-12-15 23:15

I\'m a beginner in PhoneGap and I\'m trying to understand something about the www folders. I created a project with only an iOS platform.

I saw that there are two ww

相关标签:
2条回答
  • 2020-12-15 23:45

    Check this demo project you got idea from it.

    https://github.com/Moodstocks/moodstocks-phonegap-demo-app

    0 讨论(0)
  • 2020-12-15 23:58
    • The www folder in the root folder of the project contains the global files for all platforms. This is the folder that you should edit.

    • The www folder in platforms/ios is solely for the iOS platform. This folder is built from the global www folder when you run cordova build. You should not edit this folder directly - if you wish to customise a specific platform, see the Customise Each Platform section of the Cordova CLI documentation.

    If you had more platforms (cordova platform add <platform>), then those platforms would also have their www folders built from the global www folder when you run cordova build [platform].

    0 讨论(0)
提交回复
热议问题