Results 1 to 2 of 2

Thread: YUICompressor Alternatives?

  1. #1
    Sencha User
    Join Date
    Jan 2012
    Atlanta, Georgia
    Vote Rating

    Default YUICompressor Alternatives?

    I'm using YUICompressor and ANT to recursively minify my JavaScript:

    <?xml version="1.0" encoding="UTF-8"?>
    <project name="ExtJSBoilerplate" basedir=".">
        <property description="YUICompressor" name="YUICompressor" value="C:/javascript/yui-yuicompressor-hudson-yuicompressor-43-40-g6e2bc23/yui-yuicompressor-6e2bc23/build/yuicompressor-2.4.8pre.jar" />
        <macrodef name="yuicompress">
            <attribute name="src"/>
            <attribute name="target"/>
                <echo message="Compressing files at @{src}" />
                <!-- create target folder if it doesn't exist already -->
                <mkdir dir="@{target}"/>
                <!-- Create directories recursively first.
                Exclude javascript files as they will be put by YUICompressor later on -->
                <copy todir="@{target}">
                    <fileset dir="@{src}">
                        <exclude name="**/*.js"/>
                <!-- Compress js files recursively -->
                <apply executable="java" parallel="false" verbose="true" dest="@{target}">
                    <fileset dir="@{src}">
                        <include name="**/*.js"/>
                    <arg line="-jar" />
                    <arg path="${YUICompressor}" />
                    <arg value="--charset" />
                    <arg value="ANSI" />
                    <arg value="-o" />
                    <targetfile />
                    <mapper type="glob" from="*.js" to="*.js" />
                <echo message="Files compressed and copied to @{target}" />
        <target name="compress" >
            <yuicompress src="C:/Users/mike/Documents/Aptana Studio 3 Workspace/extjs_puremvc_boilerplate/js/boilerplate" target="C:/Users/mike/Documents/Aptana Studio 3 Workspace/extjs_puremvc_boilerplate/build"/>
        <target name="compileCSS">
    Is there a way to do this using the SDK Tools? I'd like to utilize them instead of YUICompressor, if possible, for Sencha projects.

    Are there any examples of command line execution of SDK Tools that minify? Are there any examples of ANT being used to do this?

    Thanks in advance!

  2. #2
    Sencha User
    Join Date
    Jan 2012
    Vote Rating


    Im looking the same, plz if u got how to do it, post it here.

    I was trying to do it with Sencha SDK Tools but still nothing =(

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts