Skip to content

liferay theme

May 20, 2008

Compressing the css files takes place through a task in the plugin theme war manager build xml file

So first all css files are merged into one by the CSSBuilder and then compressed using the YUi-C.

http://developer.yahoo.com/yui/compressor/


<java
classname="com.liferay.portal.tools.CSSBuilder"
 classpathref="portal.classpath"
<span class="code-lines"> </span> fork="true"
<span class="code-lines"> </span> newenvironment="true"
<span class="code-lines"> </span>>
<span class="code-lines"> </span> <arg line="docroot/css docroot/css/everything_unpacked.css" />
<span class="code-lines"> </span></java>
<span class="code-lines"> </span>
<java
 classname="com.yahoo.platform.yui.compressor.YUICompressor"
 classpathref="lib.classpath"
 fork="true"
<span class="code-lines"> </span> newenvironment="true"
<span class="code-lines"> </span>>
 <arg line="--type css -o docroot/css/everything_packed.css docroot/css/everything_unpacked.css" />
<span class="code-lines"> </span></java>

Advertisements
One Comment leave one →
  1. Veni Grig permalink
    July 11, 2008 2:25 am

    Wonderful.
    Coding and decoding is so important!
    Pure Divine Love is the bottom line, after all.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: