Pack an html application into a bundle to deploy with node

I am working on a project where we want to visualize phylogenetic distance between viruses. A project which interests me is grapetree.

What I would like to do is to pack html file into a bundle, with all of its imports, so we can import it into react.

I have fiddled around with webpack, but as I have understood it, webpack uses javascript as entry points, not html sites. Here is a picture to give a brief overview of the html implementation.
The structure of the web application

Is there another bundling tool which I can use in this case, or have I missunderstood how to use webpack?

PS. In the future we want to rebuild the tool into pure js but we just want to this step first before we commit any larger ammount of time.