Generate multiple html pages with webpack and pug

Solution 1:

To generate static pages for layout and use imports like in react, you need to add a loader.Link below.

Link