has recently been trying to build a general multi-page and multi-entry application using webpack4.
both the common component and the third-party node _ modules are extracted through splitChunks. Look, the results are separated.
the html file for each entry page is specified through html-webpack-plugin.
the question arises, how to dynamically add chunk js files separated from splitChunks to html? Is there a ready-made plug-in, or can you only separate the file and add it manually?