Webpack builds a JS bundle (I’ve seen this before)
Entry file for the app (not much different here)
A tool for writing HTML pages (HTMLWebpackPlugin). It takes a template and outputs an index file.
A custom plugin to stick the statically rendered app into HTMLWebpackPlugin
Webpack builds a JS bundle (I’ve seen this before)
Entry file for the app (not much different here)
A tool for writing HTML pages (HTMLWebpackPlugin)
But this time, we use the HTML files built in the last step as our HTMLWebpackPlugin template files.