Loading...
Important Notice - Forums is archived

To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Product icon
TUTORIAL

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.

How to use on-the-fly theme compilation

Stefan Waldmann
5 years ago Jun 16, 2016 12:22pm
Tom Rauchenwald
5 years ago Jun 16, 2016 1:30pm

I can only describe what I'm doing, don't know if there's a better way.
If you build with maven, a styles.css file is generated (in src/main/webapps/VAADIN/themes/<yourtheme> and/or in target/<artifact>/VAADIN/themes/<yourtheme>
To make on-the-fly recompilation work I always delete those. (I'm pretty sure that this step can be avoided by making sure the vaadin-maven-plugin doesn't compile the theme, but I've been to lazy to change that so far)

I think productionMode needs to be set to false for on-the-fly compilation to work as well.

That's about it, if it works it will generate a styles.scss.cache file in the target themes folder. 

We're using spring boot, but I don't think that matters much in that case.

Stefan Waldmann
5 years ago Jun 30, 2016 1:19pm