mercredi 27 avril 2016

How to copy *.json files from the scripts folder to www folder in a cordova project?

I am using Typescript in a cordova project. I have my tsconfig.json set up to compile my *.ts files and create the *.js files in the www folder. Now I want to load a local json file using $.getJSON() function and I am getting a FILE_NOT_FOUND error because my local json file from the scripts folder does not get transferred to the www directory. How do I solve this issue? Thanks!




Aucun commentaire:

Enregistrer un commentaire