Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Vaadin 7 build with Maven, how to prevent style.css from being always re-generated

I use vaadin 7 and I build it with maven.

There is a CSS file called 'the_name_of_myProject'/src/main/webapp/VAADIN/themes/mytheme/styles.css If I modify it in any way, my modifications are overridden by the next maven build. Looks like the file is always re-generated from jars.

What can I do if I want those modifications to survive?

I have created my own theme with a different name but it did not help either because its .css were overridden in the same way.

Any advice is appreciated.

like image 673
Sanyifejű Avatar asked Jan 09 '23 20:01

Sanyifejű


1 Answers

Sass is an extension of CSS. Here is a description: link
Maven generates CSS from Sass. You can put your custom css code into styles.scss.

like image 176
Krayo Avatar answered Feb 08 '23 15:02

Krayo