If you are using cordova-cli, there is already a merges/ folder for exactly this.
>From the README: Platform-specific web assets (HTML, CSS and JavaScript files) are contained within appropriate subfolders in this directory. These are deployed during a prepare to the appropriate native directory. Files placed under merges/ will override matching files in the www/folder for the relevant platform. On Thu, May 2, 2013 at 11:46 AM, Andreas Sander <andreas.san...@hotmail.de>wrote: > Hi again ;-), > I use a plugin with different JavaScript files for each platform. Can I, > somehow, control which of these files are added to which platform specific > www folder during cordova build? > Or do I need to include both inside the www folder and refer to them based > on device.platform? > Greets, > Andreas