click-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Malcolm Edgar (JIRA)" <>
Subject [jira] Created: (CLK-542) Optimize CSS & JS when in production & profile modes
Date Wed, 29 Apr 2009 05:27:33 GMT
Optimize CSS & JS when in production & profile modes

                 Key: CLK-542
             Project: Click
          Issue Type: New Feature
          Components: core, extras
            Reporter: Malcolm Edgar
            Priority: Minor

Use optimized CSS and JS click includes when the application mode is "profile" or "production".
  Use the YUI Compressor to perform optimization at Click build time for example:

	<target name="optimize-resources">
		<concat destfile="WebRoot/css/screen-all.css" >
			<filelist dir="WebRoot/css/" files="text.css,utilClasses.css,layout.css,color.css,whitespace.css,chrome.css,css3.css,screen.css,formsPage.css,avoka.css"/>
		<java jar="lib/build/yuicompressor-2.4.2.jar" fork="true" failonerror="true">
		 	<arg value="-o"/>
		 	<arg value="WebRoot/css/screen-min-${build.version}.css"/>
		 	<arg value="WebRoot/css/screen-all.css"/>
		<delete file="WebRoot/css/screen-all.css" failonerror="false"/>
		<!-- JS -->
		<concat destfile="WebRoot/javascript/javascript-all.js" >
			<filelist dir="WebRoot/javascript/" files="jquery-1.3.1.min.js,siteBase.js,readerSniff.js"/>
		<java jar="lib/build/yuicompressor-2.4.2.jar" fork="true" failonerror="true">
		 	<arg value="-o"/>
		 	<arg value="WebRoot/javascript/javascript-min-${build.version}.js"/>
		 	<arg value="WebRoot/javascript/javascript-all.js"/>
		<delete file="WebRoot/javascript/javascript-all.js"  failonerror="false" />

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message