SoldierCorp / webpack-starter-pug-sass-es6-jquery

Webpack 5 starter that supports Pug, SASS, ES6 ES7 ES8 ES9 ES10 ES11 ES12, VanillaJS/jQuery... (without framework) and generate URLs without the .html extension.
https://webpack-starter.edgardorl.com
MIT License
103 stars 34 forks source link

Is there a way to automate adding new pug pages to webpack? #51

Closed ekfuhrmann closed 2 years ago

ekfuhrmann commented 2 years ago

This is a really nice starter file that mimics a lot of what I'm trying to do; however, coming from a similar Gulp boilerplate I've been using, I can't quite figure out how to properly account for new pug pages within the project. It seems like if I am to add/remove a new page, I need to rebuild webpack each time. Is there any way to automate this process? Adding watch: true, to webpack doesn't seem to solve for the problem.

SoldierCorp commented 2 years ago

Hi @ekfuhrmann !

I'll take a look at it later today.

ekfuhrmann commented 2 years ago

No rush, just curious if it's possible to have webpack watch for added/removed pug files and just hot update without a rebuild.