updroid / jquery-jstore

Automatically exported from code.google.com/p/jquery-jstore
1 stars 0 forks source link

Use Google Closure Compressor #31

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Suggestion: use Google Closure Compressor
(http://code.google.com/closure/compiler/) instead of YUI Compressor

Example Ant task:
<java failonerror="true" fork="true" jar="${lib.dir}/build/compiler.jar">
    <arg value="--js" />
    <arg file="@{file}" />
    <arg value="--js_output_file" />
    <arg file="@{file}.closure" />
    <arg value="--compilation_level" />
    <arg value="SIMPLE_OPTIMIZATIONS" />
    <arg value="--externs" />
    <arg value="${build.lib.dir}/externs.js" />
    <arg value="--warning_level" />
    <arg value="${closure.warning_level}" />
    <!-- 
    <arg value="- -formatting" />
    <arg value="PRETTY_PRINT" />
    -->
</java>

Original issue reported on code.google.com by outofthe...@gmail.com on 26 Feb 2010 at 4:08

GoogleCodeExporter commented 9 years ago
Will most likely implement this for the first official 2.0 production release. 
Thanks for 
making me aware of it, closure compressor looks sexy.

Original comment by gars...@gmail.com on 7 Apr 2010 at 5:56

GoogleCodeExporter commented 9 years ago

Original comment by gars...@gmail.com on 7 Apr 2010 at 5:56