After build Index.html has different path to libraries or no library at all

Is there perhaps a post-build script that is running that is updating the contents of the build version?

Check in Project | Options | Building | BuildEvents and see if there's anything defined in there?