A
A
Alexander2016-11-28 16:04:49
HTML
Alexander, 2016-11-28 16:04:49

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

1 answer(s)
A
Artem Kayun, 2016-11-28
@Kayun

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 question

Ask a Question

731 491 924 answers to any question