Change Cordova working directory

How can I change the Apache Cordova working directory to something other than www? Changing <content src="src/index.html"/> in config.xml does not work.

+7
cordova ionic-framework
source share
2 answers

Here is what the documentation for ionic-cli says about Serving an Alternative Root Document

If you want to test your application in a browser and you use a folder other than the default www, you can specify this folder in the ionic.project file.

Example:

 { "name": "SmoothRiders", "gulpStartupTasks": [ "watch" ], "documentRoot": "app", "watchPatterns": [ "app/js/*", "!app/css/**/*" ] } 
+7
source share

I hate being the bearer of bad news, but I do not consider it possible to change the root folder through the config.xml configuration file (at least in the current version as of January 2015). The source code for various platforms was written with the assumption that "www" will be the root folder of the web view content. I believe that it would be possible to manually change the original post-preparatory, but I highly recommend against it.

+2
source share

All Articles