Hi,
I have some css files directory src/main/resources/META-INF/resources/frontend/styles. Im using StyleShyyt to import them into project. When i
m running my app in Eclipse then everything is working fine, but when i build jar and run it, then it cant find my css files. Changing annotation to CssImport with this same value is working for jar file but then it isn’t loading my background images. What can i do wrong, if everything working fine with running app from eclipse but not working from jar file? I`m using Vaadin 14 with Spring Boot.
@StyleSheet(value=“frontend://styles/loginPanel/general.css”) ← working from eclipse loading background images not working from jar
@CssImport(value=“frontend://styles/loginPanel/general.css”) ← working from eclipse and jar but isnt loading background images
general.css
.background {
background-image:url("../images/watermark-white.png"), url("../images/spring1.jpg");
background-position: right bottom, left top;
background-repeat: no-repeat, no-repeat;
background-size:,cover;
}
.card{
position: absolute;
top: 50%;
left: 50%;
transform: translateX(-50%) translateY(-50%);
color: white;
width: 320px;
height: 210px;
border: 1px solid rgba(255, 255, 255, 0.41);
border-radius: 10px;
background: -moz-linear-gradient(top, rgba(0,36,32,0.4) 0%, rgba(35,15,2,0.4) 100%);
background: -webkit-linear-gradient(top, rgba(0,36,32,0.4) 0%,rgba(35,15,2,0.4) 100%);
background: linear-gradient(to bottom, rgba(0,36,32,0.4) 0%,rgba(35,15,2,0.4) 100%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#66002420', endColorstr='#66230f02',GradientType=0 );
box-shadow: 0px 0px 9px rgb(0,0,0);
}