1. #1
    Sencha Premium Member
    Join Date
    Jan 2011
    Posts
    39
    Vote Rating
    1
    OhmzTech is on a distinguished road

      1  

    Default YUI Compressor Options

    YUI Compressor Options


    Is there any way to set the options for YUI Compressor when generating a production build through CMD? Specifically I am interested in preserving line breaks (--line-break) for remote error tracking purposes.

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,330
    Vote Rating
    846
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    I do not believe there is a way to configure YUI compressor.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    Sencha Premium Member
    Join Date
    Jan 2011
    Posts
    39
    Vote Rating
    1
    OhmzTech is on a distinguished road

      0  

    Default


    Is this something that could be considered for future updates? Without that option using Sencha CMD does not allow for remote JS error reporting, since these reports are pretty useless when they all return line number 1.

  4. #4
    Sencha User mberrie's Avatar
    Join Date
    Feb 2011
    Location
    Bangkok, Thailand
    Posts
    506
    Vote Rating
    14
    mberrie will become famous soon enough mberrie will become famous soon enough

      1  

    Default


    +1 for allowing to pass configuration options to YUI (or closure) compiler.

  5. #5
    Sencha Premium Member
    Join Date
    Nov 2012
    Posts
    1
    Vote Rating
    0
    kwenger is on a distinguished road

      0  

    Default


    bump

  6. #6
    Ext JS Premium Member itlogo's Avatar
    Join Date
    Mar 2008
    Posts
    37
    Vote Rating
    1
    itlogo is on a distinguished road

      0  

    Default Integrate CMD into Ant to configure options

    Integrate CMD into Ant to configure options


    You can specify YUI compressor options if you call Sencha CMD through Ant. http://docs.sencha.com/extjs/4.1.3/#!/guide/command_ant

    Essentially, after your compile, run the <x-compress-js linebreak="80"> task.