LESS CSS Implementation

9 views
Skip to first unread message

Matt Gersting

unread,
Sep 19, 2011, 4:54:32 PM9/19/11
to scriptwritercf
Hey all. I'm in the process of adding LESS CSS processing into
ScriptWriter. However, due to the nature of the Java implementations
available currently, I'd need to added a dependency to ScriptWriter -
JavaLoader. This would all be behind the scenes (for the most part),
and, in the long run could actually reduce the number of lines in your
setup code (not by a whole lot, mind you).

Anyways, wanted to reach out to you - the users of SW3 - for any
feedback, preferences there.

Let me know what you think.
Thanks.

Matt Glaze

unread,
Sep 21, 2011, 11:48:45 AM9/21/11
to scriptw...@googlegroups.com
Okay, so by having LESS it would be possible to utilize CSS variables and all of that awesomeness.  When ScriptWriter minifies the CSS files, does it strip out those variables and replace them with standard CSS?  Reason why I ask is because on the project I was doing, I had the development environment combining and compressing the CSS to a single file.  Then in the production environment I was bypassing ScriptWriter altogether and referencing the minified file directly.  I found that I had to do this because I was caching some huge query objects (zip code database for the US and Canada).  When I tried to utilize ScriptWriter (even in lazy mode), the virtual server I was hosting on started to choke.  If you incorporated LESS so that the application could no longer function without ScriptWriter, it seems that could limit flexibility.

With all of that being said, I would LOVE to have the ability to utilize LESS, but with some way of making it not have to be dependent on ScriptWriter.



> Date: Mon, 19 Sep 2011 13:54:32 -0700
> Subject: LESS CSS Implementation
> From: mger...@gmail.com
> To: scriptw...@googlegroups.com

Matt Gersting

unread,
Sep 23, 2011, 3:25:49 PM9/23/11
to scriptw...@googlegroups.com
All of SW3's behavior would essentially remain unchanged, except that if you put add() a .less file it will process the LESS for you.
Reply all
Reply to author
Forward
0 new messages