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

Dev mode broken when using `clean` #190

Closed cescoffier closed 3 months ago

cescoffier commented 3 months ago

If you use mvn clean quarkus:dev and use the dev mode, the bundle is deleted and so... cannot be loaded anymore.

GET http://localhost:8080/static/bundle/main-I37LK3HR.js net::ERR_ABORTED 404 (Not Found)
ia3andy commented 3 months ago

@cescoffier are you using 1.4.0?

ia3andy commented 3 months ago

I suppose you are experiencing this: https://github.com/quarkiverse/quarkus-web-bundler/issues/171 which is fixed in 1.4.0

cescoffier commented 3 months ago

I am using the latest.

cescoffier commented 3 months ago

Sorry, the variable was not use it uses 1.3.1 - fixing it.

cescoffier commented 3 months ago

Will re-open if it's happening again.

ia3andy commented 3 months ago

Just for context:

=> but because of the cache issue https://github.com/quarkiverse/quarkus-web-bundler/issues/171, it was keeping the previous index.html, so using the old js hash.

With the fix, I am instantiating the Vert.x StaticHandler from the Web Bundler and cache is disabled in devmode.

At some point I think we should make this available in Quarkus core:

This would allow to use the BuildItems from extensions instead of instantiating the static handler.