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
138 stars 14 forks source link

Custom preprocessor function doesn't watch files #10

Closed rohit-gohri closed 1 year ago

rohit-gohri commented 1 year ago

Current behaviour

If I use a custom function for preprocessor then dev-server watch files and instead closes with success.

Expected behaviour

Dev server should watch template files

Reproduction Example

Run the liquid js example in the readme in watch mode

Environment

Additional context

webdiscus commented 1 year ago

Hello @rohit-gohri,

thanks for the issue report. I try to fix it.

rohit-gohri commented 1 year ago

Can ignore, it was exiting due to an unrelated process.exit somewhere in my code