single-page applications are built with webpack to enjoy the modern engineering development experience. However, when you encounter a traditional multi-html page project, you will return to the stone age of slash-and-burn cultivation: ES6 cannot be used; css preprocessing languages such as less cannot be used; there is no componentization, and the common part of the page depends on copying and pasting, and you have to change many places as soon as there are changes.
so how should traditional projects with multiple html pages be built in webpack?
in fact, it can mainly solve the two pain points of ES6 and less.
unlike a single-page application, the entry of a traditional multi-page project is html rather than js, and there are multiple. In that case, how to configure webpack? It"s okay to provide an idea.