How to change documentRoot?


#1

Hello I want to select another directory (instead of www) for storing compiled files. How can I do this?


#2

I have found a way, I just added:

"config": {
  "ionic_www_dir": "../static/src" <-- this code line
},
"scripts": {
  "ionic:build": "ionic-app-scripts build",
  "ionic:serve": "ionic-app-scripts serve"
},

But now I have a different trouble, when I call ionic build, ionic doesn’t copy builded source inside ios and android www directory from my custom dir (it still tries to copy source from old www directory and ignores my custom www dir). What should I add ?


#3

Ok I found a very simple way:

I delete all contents inside default www dir and made it as a link to another dir! Forget about configs, it not necessary. Topic can be closed