maizzle / framework

Quickly build HTML emails with Tailwind CSS.
https://maizzle.com
MIT License
1.2k stars 48 forks source link

5.x: images added to watched paths after dev server start are not served #1321

Open cossssmin opened 1 month ago

cossssmin commented 1 month ago

If you add an image to your build.static.source path while the local dev server is running, it will not be served.

This is because the Express.js server doesn't know about this new asset and it will not respond to routes that match its path.

We need to update the static paths for Express whenever a file is added/removed in the paths that the server is watching.