Now in my project 2 files from js are connected to each page of the site. The first is siteLib - I add modules to it that are used on most pages, and this file is connected to all pages of the site i.e. it is like a shared library for the site. And the second file, this is already a bundle file, there I add the modules needed specifically for this page and which are not in siteLib.
I read about webpack and commonChankPlugin, and I had a question if siteLib is needed at all, or it’s better to do without it and add everything to the page bundle for the webpack, then I would analyze the bundles myself and put the modules used on several pages into separate bundles?