I think that I've got how Webpack works. My problem is: Most tutorials/examples are based on a single index.html. So, how would I organize my webpack.config.js and directory structure for multiple pages?
Let's assume that I need the following things:
index.htmlwith acssandjsfiledashboard.htmlwith acssandjsfileprofile.htmlwith acssandjsfile
And here is what I don't get:
- How would you structure your
srcanddistfolder? - How do I have to configure Webpack? Probably with
HtmlWebpackPlugin(?) - Is a single
index.jsfile enough as entry point / How does one structure theindex.jsfile / How do ES6 projects look in general?
A sample project would help a lot. A project with more than just an example index.html file.
Have a good day! :)