I’m developing an ionic 2 app that makes use of a 3rd party library / script that has no typescript definitions.
I can use the script inside my components by using the syntax:
declare var MyThirdPartyScript: any
I then stick the script inside the www/index.html file with a script tag:
However, whenever I run ionic serve, my index.html file is overwritten!! What is the correct way to include such a library in my project, so that I don’t have to manually insert it after every build??