Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

LESS css or SCSS in GWT

Tags:

less

gwt

Has anyone been able to integrate the wonderful shorthanded syntax of LESS with the awesomely module, re-factor friendly and type-safe CSS of GWT UiBinder?

<ui:style with="com.lesscss.gwt">
    .selector{
        /* Can I haz LESS in here? */
     }
</ui:style>

Naturally, you can use LESS with GWT -- You just have to use non-compiled css. I want my css to go through the LESS compiler, and then the GWT compiler.

like image 737
logan Avatar asked Apr 24 '12 00:04

logan


1 Answers

There are no direct libraries for that, no.

LESS doesn't even have a java compiler, so I really don't think it's ever going to happen.

Suppose you could write a pre-compile routine that will go through your ui.xml files, compile contents of ui:style nodes and put the compiled versions back. Then you will run into continuous problems with your IDE complaining about improper CSS code.

like image 168
McTrafik Avatar answered Oct 07 '22 10:10

McTrafik