-
21 Jan 2013 6:48 AM #1
Sencha CMD concatenate files - how to turn off YUI compression?
Sencha CMD concatenate files - how to turn off YUI compression?
Trying to make one big js file from my app
but getting lots of "YUI Compressor Error" - likePHP Code:sencha compile -classpath=extjs/src,app concat app-all.js
- looks like problem is in my custion function called gotoPHP Code:[ [2000] : YUI Compressor Error <> missing name after . operator => this.goto = function (params) {
- problem is in attribute called "float"PHP Code:[ [2000] : YUI Compressor Error <> invalid property id => float: 'right', ]
I do not want fix this errors, and I do not need compress js file at all - I just need concat all my js files into one working file, like ext-all.js , how can I do it?
Didnt found option how to disable YUI, tried use
- but still getting YUI errorsPHP Code:sencha compile -classpath=extjs/src,app concat -closure app-all.js
-
21 Jan 2013 10:58 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,582
- Vote Rating
- 433
Was the app generated by Cmd?
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.
-
21 Jan 2013 11:43 AM #3
-
22 Jan 2013 2:13 AM #4
It seems that YUI compressor takes float and goto as reserved words. Use another names.
Jozef Sakalos, aka Saki
A lot of valuable info at:
Saki's Extensions and Plugins
Saki's Extensions and Plugins Docs
Saki's Examples, Latest: Grid in Card Layout
Saki's Blog, Featured: Writing a Big Application in Ext, Latest: Grid MultiSearch Plugin Video
-
22 Jan 2013 7:14 AM #5
This names are used in lots of files lots of times, I cant spend much time to fix such errors and possible lots other errors - I tried to compile different set of files and get another not-real-errors. How can I disable YUI compression, or use another compression tool like closure compiler? I've posted above code where trying to use -closure, but getting same yui errors, what is correct syntax or what is wrong?
-
3 Feb 2013 2:34 PM #6
-
3 Feb 2013 4:00 PM #7
I still think that culprit is reserved words. Did you check with yahoo guys who wrote YUI?
Jozef Sakalos, aka Saki
A lot of valuable info at:
Saki's Extensions and Plugins
Saki's Extensions and Plugins Docs
Saki's Examples, Latest: Grid in Card Layout
Saki's Blog, Featured: Writing a Big Application in Ext, Latest: Grid MultiSearch Plugin Video
-
4 Feb 2013 4:21 AM #8
I'm sure that .goto and other things are specific for YUI, so I need not to fix YUI problems but disable YUI - either using google's closure or not compressing files at all, just concatenate in correct order.
-
4 Feb 2013 6:48 PM #9
Yeah that might work well, however, in the long run, I'd rather fix the code.
Jozef Sakalos, aka Saki
A lot of valuable info at:
Saki's Extensions and Plugins
Saki's Extensions and Plugins Docs
Saki's Examples, Latest: Grid in Card Layout
Saki's Blog, Featured: Writing a Big Application in Ext, Latest: Grid MultiSearch Plugin Video
-
5 Feb 2013 2:38 AM #10
This should work well, but I cant user compiler another than YUI - sencha cmd ignores -closure option.
Please tell me how I should add -closure option to make sencha cmd use Closure Compiler instead of YUI ?sencha compile -classpath=extjs/src,app concat -closure app-all.js
- but still getting YUI errors
Thank you for reporting this bug. We will make it our priority to review this report.


Reply With Quote