Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Change Cordova's working directory

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

like image 735
user1086337 Avatar asked Jan 15 '15 15:01

user1086337


1 Answers

Here is what documentation for ionic-cli says about Serving an alternative document root

If you'd like to test your app in the browser and you use a folder other than the default of www, you can specify this folder in your ionic.project file.

Example:

{
  "name": "SmoothRiders",
   "gulpStartupTasks": [
    "watch"
  ],
  "documentRoot": "app",
  "watchPatterns": [
    "app/js/*",
    "!app/css/**/*"
  ]
}
like image 106
Vlad Bezden Avatar answered Nov 03 '22 00:11

Vlad Bezden