Bootstrapping and running Angular app on a web page from chrome extension

Here is what the chrome extension should do:
1. Replace the website html code with the angular app
2. Run the angular app.

But because of the way Angular 5 works, I don’t know how to run the app. (it’s in production mode)
How can I run it from the chrome extension?
In the app, there is a .angular-cli.json file with the index field; Since the app will be implemented on a webpage, what should I put in it?