quarkiverse / quarkus-web-bundler

Create full-stack web apps quickly and easily with this Quarkus extension. It offers zero-configuration bundling for your web app scripts (JS, JSX, TS, TSX), dependencies (jQuery, React, htmx, etc.), and styles (CSS, SCSS, SASS).
Apache License 2.0
16 stars 9 forks source link

Add automatic browser reload in dev-mode #187

Closed ia3andy closed 1 month ago

ia3andy commented 3 months ago

See https://esbuild.github.io/api/#hot-reloading-css

We should create a new SSE endpoint containing the list of changes, and inject something similar to the esbuild example, directly in the code in dev mode (with a config to disable it)

ia3andy commented 3 months ago

cc @maxandersen

ia3andy commented 3 months ago

We could create a specific extension for this with a SPI to allow pushing added, udpated and removed resources to the list (This could be a new independent runtime artifact of the Web Bundler)

With the Web-Bundler we also control the js part so we can add the EventSource automatically in dev mode.

ia3andy commented 1 month ago

This is done in 1.5.1