The Vaadin Wiki is temporarily in read only mode due to large recent spam attacks.

Coding

Vaadin on Grails - SASS Compilation

Tags: grails sass
WARNING: This wiki page was last edited over a year ago and might be outdated.

Versions used in this tutorial: Grails 2.3.x, Vaadin 7.1.x. News and updates about Vaadin on Grails are available on VaadinOnGrails. This is continuation of Vaadin on Grails - Multiple UIs

After we create a new theme we need to compile SASS (

styles.scss
) file in, for example,
web-app/VAADIN/themes/mytheme
folder.

We just need to add the name of a theme to

VaadinConfig.groovy
, in our example
mytheme
. We can also define Vaadin version for SASS compilation by defining
sassCompile
variable. If we do not define Vaadin version a default version will be provided by the plugin.

vaadin {
...

themes = ['sample'] sassCompile = '7.1.9' }

environments { production { vaadin { productionMode = true } } } }}}

Then

styles.scss
gets compiled into
styles.css
when we run
grails prod war
command.

0 Attachments
6886 Views
Average (1 Vote)
Comments
very fast to develop, but when I need the war production vaadin download the specified version. Should be I will specify the folder where the vaadin and compile from there the matter, at least when I think the production environment.
Posted on 4/28/14 4:47 PM.
So fast, but need specify a folder and not a version of vaadin. Download a vaadin is too slow and if a download one time why delete it?
Posted on 5/11/14 7:15 PM.
When in develpment how do you get the saas file compiled? I have not found info about it.
Posted on 11/13/15 10:28 PM.