Search code examples
angularjscordovaionic-framework

IONIC run command always generate index.html file in 'www' folder, why?


I am trying to create an ionic app on existing angularjs project. I followed the instructions here, and my problem is when I run ionic serve it overrides my index.html file in www folder. So the results will be empty! But if I replaced my index.html file in www folder while the server is running and refreshed I got an expected results and I have this process loop always.

Is there any way to prevent ionic from override my index.html file?


Solution

  • I got the same issue. I have created a blank project, and everytime I launch:

    ionic serve
    

    My www/index.html file is replaced with the blank project one.

    I just realize that it replaces the www/index.html file with the src/index.html file.

    So now I just edit the index.html file located in src folder.