Open harshithpawar94 opened 4 years ago
Hi @harshithpawar94,
I digged a while and found out the right spot to place your CSS files:
Annotate your class with eg @StyleSheet("style.css")
and your file needs to be at src/main/resources/META-INF/resources/frontend/style.css
. I did not test it with JS. Will try it, if I need it. Please let me know, if it helps you.
PS: I just downloaded this repo and started the example - nothing else. :)
HI @ahofmeister,
Thanks for the reply, Yes this works fine I have tried before. But I think we have an issue while running in quarkus dev mode in vaadin npm version(which has node_modules js dependencies). while running in production mode(java -jar *.jar) everything seems ok for npm mode. Do you have any idea for quarkus:dev mode?
@harshithpawar94 Nope, I do not have any node modules yet.
Hi, while implement vaadin(14.2) with quarkus(1.15.0.Final) framework, static resources(css, js, images, etc..) are not getting loaded in npm mode vaadin 14+. I know that your project runs in compatibility mode, But I was really hoping you could help me out with my issue.
Here is the same sample GitHub reproducing project to demonstrate the above-said problem.
sample demo project to illustrate