webdiscus / html-bundler-webpack-plugin

Alternative to html-webpack-plugin ✅ Renders Eta, EJS, Handlebars, Nunjucks, Pug, Twig templates "out of the box" ✅ Resolves source files of scripts, styles, images in HTML ✅ Uses a template as entry point
ISC License
146 stars 14 forks source link

How to watch the entry directory for adding/removing/renaming a file? #22

Closed webdiscus closed 1 year ago

webdiscus commented 1 year ago

What is the expected behavior?

The watching of the entry directory for changing of entry files and rebuild entries when files are added/deleted/renamed.

Problem

Compilation fails after renaming an entry file:

ERROR in <entry name>
Module not found: Error: Can't resolve <entry source file> in <entry dir>
webdiscus commented 1 year ago

New v2.1.0 is released. Now you can add/delete/rename a template file in the entry path without restarting Webpack.