Results 1 to 3 of 3

Thread: Sencha Build: Does not minify

  1. #1
    Sencha User
    Join Date
    Jan 2011
    Posts
    7
    Vote Rating
    0
      0  

    Default Sencha Build: Does not minify

    Hey,

    Some people might find this useful.

    When your compressing your files into app-all.js, sencha build just invokes YUI Compressor. The issue is that the sencha build invocation hides the output from YUI Compressor, so if something goes wrong you're screwed.

    If this happens to you, you need to snag the yuicompressor.jar yourself, and try to build it

    java -jar ycompressor.jar all-classes.js -o app-all.js

    When you run this command, ycompressor will tell you what's wrong.

    The output will look like the following, and then you can go see what's wrong with your all-classes.js

    PM\YCompressor\ycompressor.jar all-classes.js -o app-all.js


    [ERROR] 71165:34:missing name after . operator


    [ERROR] 71166:26yntax error


    [ERROR] 71167:28yntax error


    [ERROR] 71168:28yntax error


    [ERROR] 71169:26yntax error


    [ERROR] 71172:22:invalid property id


    [ERROR] 71172:47yntax error


    [ERROR] 71175:22:missing ; before statement


    [ERROR] 71176:23yntax error


    [ERROR] 71177:25yntax error

  2. #2
    Sencha User Frank's Avatar
    Join Date
    Mar 2007
    Posts
    186
    Vote Rating
    1
      0  

    Default

    foeget YUI Compressor
    just use SDK Tools, like:

    # Minify app.js and write the output to app.minified.js
    sencha fs minify app.js app.minified.js
    Ext Every Day!
    ajaxjs.com

  3. #3
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,551
    Vote Rating
    1271
      0  

    Default

    It is saying you have a JS error.
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

Tags for this Thread

Posting Permissions

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