-
4 Jun 2012 1:01 PM #1
Sencha Build: Does not minify
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:26
yntax error
[ERROR] 71167:28
yntax error
[ERROR] 71168:28
yntax error
[ERROR] 71169:26
yntax error
[ERROR] 71172:22:invalid property id
[ERROR] 71172:47
yntax error
[ERROR] 71175:22:missing ; before statement
[ERROR] 71176:23
yntax error
[ERROR] 71177:25
yntax error
-
6 Jun 2012 10:52 PM #2
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.jsExt Every Day!
ajaxjs.com
-
7 Jun 2012 2:20 PM #3Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 34,121
- Vote Rating
- 453
It is saying you have a JS error.
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
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 almost in print!
When posting code, please use BBCode's CODE tags.
Thank you for reporting this bug. We will make it our priority to review this report.


Reply With Quote