Answer the question
In order to leave comments, you need to log in
How to compile multiple pug/jade files into one html using webpack?
I'm starting to master webpack and now the question arose rather sharply of what would be to assemble a static page page.html from a bunch of small .pug files.
If this task is easier and more correct to perform using another tool, I will be glad for pointing it out :)
Answer the question
In order to leave comments, you need to log in
Create an index.pug and include all your partials there. And pass index.pug through this plugin https://github.com/webpack/extract-text-webpack-plugin
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question