Replies: 1 comment
-
/cc @ia3andy |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm using Quinoa to build tailwindcss files. When I run
quarkus dev
and open the web app in the browser, everything looks fine. But when I make a change in some html file, i.e. add some tailwindcss class, the newly generated css files don't seem to take effect when I refresh the browser. I can only see the changes when I stop the app and runquarkus dev
again.Here's what I have:
application.properties
quarkus.quinoa.build-dir=build
src/main/webui/package.json
src/main/webui/tailwind.config.js
At some point I thought the
start
npm script, which runs tailwindcss build in watch mode, was not being executed, so I manually started that in another terminal window like this atsrc/main/webui
:When I change some html file I can see it detecting the file changes and rebuilding:
For example let's say I add the
bg-gray-600
class to some html element, if I take a diff between the newly generated css file and the previously generated one:I can see the changes:
If I force a restart by typing
s
, I still don't see the changes when I refresh the browser.Even if I copy the new file to the target dir:
I also still can't see the new file when I refresh the browser. In this case the changes are only visible after I force a restart by typing
s
(given that I copied the file as illustrated above).Am I missing something or is this something that
quarkus dev
doesn't support?Edit: as a workaround I'm now running tailwindcss build in watch mode outside
quarkus dev
, pointing the output file path directly at the generated file path undertarget/quinoa/build
. I don't know why previously when I manually copied the file I couldn't see the changes until I force-reloaded the app, but now when I run tailwindcss build like this I don't need to force-reload the app to see the changes, they're are visible as soon as tailwindcss builds a new file.Beta Was this translation helpful? Give feedback.
All reactions