You basically need the babylon.manager.js loaded on your host page. When you enable web project for the export… i create an engine.html by default… look at that page in your export folder to get an idea of what is going on the host page.
I made a little tutorial on baking lightmaps… but i create the whole project from scratch
Hey guys, i made a tutorial on lightmaps. Check it out, it goes into baking light for large detailed scenes