I'm using webpack with nunjucks-webpack-plugin but I can't figure out how to compile all .njk files in a directory.
My Directory Structure:
├── src/
└── pages/
└── index.njk
└── blog.njk
└── blog-single.njk
└── template-parts/
└── layout.njk
└── header.njk
└── footer.njk
The files in
pagesfolder needs to be compiled into html. e.g. index.njk, blog.njk etc.
I am new to js any kind of suggestion would be really helpful.
Is it even possible to that with webpack & nunjucks or should I use some other templating engine ?