- Optimize your app.
- Copy all assets to the www folder of your PhoneGap/Cordova project.
- Update the index.html file to point to the optimized build (and your other assets).
Creating native applications for phones and tablets is easy by combining Durandal with PhoneGap/Cordova. The first step is to optimize your application for deploy. How you do this depends on what platform and setup you are running. In general, you have these options:
mimosa build -mo
Note: If you wish to run without needing to optimize, you may need to perform an additional step. For example, the PhoneGap Visual Studio 2012 template requires that you alter Plugins/File.cs by changing readResourceAsText, because it reads the views from the wrong location. You can see this article for more information.
Note: If you are pulling in JSON files locally using
http.getyou should switch to using
$.getJSONinstead to avoid some issues with the way PhoneGap serves local files without Content-Types.