hanami / assets-js

esbuild plugin for Hanami Assets
3 stars 5 forks source link

Watch for added/changed static files (aka non-JS, non-CSS files) in watch mode #22

Open timriley opened 9 months ago

timriley commented 9 months ago

Right now adding new static files (e.g. app/assets/images/some-image.jpg) requires the hanami assets watch process to be restarted. This is far from ideal. Watch mode should detect added/changed files in assets directory and process those as required.

The https://github.com/tinchoz49/esbuild-plugin-copy-watch plugin may provide some inspiration for us here.