Changes made to index.html erased after build

Hello guys,

I already have a web app that I’m trying to port to ionic. This means I have the SASS, JS files ready and need to make changes with ionic. I included the necessary scripts in the /www/index.html and it worked in the browser. I added the android platform and issued the command ionic run android --device. But none of the Javascript changes where reflected in the phone. I checked the /www/index.html, all the scripts I have included was deleted. (i.e) It has reverted back to the original version.

Is this the correct way to include your custom scripts and libraries like jquery?

As you discovered, editing the index.html file that exists in the www folder will be overwritten. If you need to modify the index.html file located in the src folder instead.

A post was split to a new topic: Www/index.html get reverted back to a blank default version