-
18 Apr 2013 1:14 AM #1
app.css not minified when sencha app built using Sencha Cmd 3.1.1.274
app.css not minified when sencha app built using Sencha Cmd 3.1.1.274
Setup steps (in Windows XP SP3):
- Sencha Cmd 3.1.1.270 installation
- Followed by "sencha upgrade" to Sencha Cmd 3.1.1.274
- Extracted Sencha Touch 2.2 (Commercial Release) SDK to touch-2.2.0 folder
- Created a fresh new app using "sencha generate app MyApp /path/to/myapp"
- Built the app using "sencha app build production"
The resulting production code minifies "app.js" and "app.json". But it somehow does not minify "app.css" and/or any other custom css included in app.json file. It simply copy-pastes the same file into the production folder. So, I reverted back to the previous version of Sencha Cmd 3.1.1.270, and built the app again and everything went fine then.
-
22 Apr 2013 6:12 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,624
- Vote Rating
- 434
Using 3.1.1.274 I generated a new app and did a production build. Looked at the build/MyApp/production/resources/css/app.css and it was minified for me.
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.
-
22 Apr 2013 9:43 PM #3
More info...
More info...
One request: This might seem stupid, as it wouldn't really matter logically, but anyway, could you please try the exact same procedure: Cmd 3.1.1.270 > "sencha upgrade" > to .274 version, and then moving on to the build.
More info: in my sencha.cfg file, I have set:Here's the -debug info. The output text marked in bold is the one that is NOT appearing (i.e. being skipped) somehow in my case. Hope this was helpful. Let me know if you think I can provide any more information.Code:skip.sass=1
Code:... [INF] Completed compilation. [DBG] Assets => Processed : 0.0 Total : 4.0 [INF] Processed remote file touch/sencha-touch.js [DBG] Assets => Processed : 1.0 Total : 4.0 [DBG] running preprocessor for file D:\mobile2-2\build\production\app.js [INF] Processed local file app.js [DBG] Minifying app.js [DBG] Load url is file:/C:/Documents and Settings/userk/bin/Sencha/Cmd/3.1.1.270/lib/yuicompressor-2.4.7.jar [INF] Minified app.js [DBG] prepending checksum on D:\mobile2-2\build\production\app.js [DBG] copying destination to archive [DBG] copying D:\mobile2-2\build\production\app.js to D:\mobile2-2\archive\app.js\565b2c665927829dcc2e0a8653bd7c3d35bc7306 [DBG] Assets => Processed : 2.0 Total : 4.0 [DBG] Minifying resources/css/app.css [DBG] Load url is file:/C:/Documents and Settings/userk/bin/Sencha/Cmd/3.1.1.270/lib/yuicompressor-2.4.7.jar [INF] Minified resources/css/app.css [DBG] prepending checksum on D:\mobile2-2\build\production\resources\css\app.css [DBG] copying destination to archive [DBG] copying D:\mobile2-2\build\production\resources\css\app.css to D:\mobile2-2\archive\resources\css\app.css\552956a396ea6a9a918d9f69dd5a1bc5058f313a [DBG] Assets => Processed : 3.0 Total : 4.0 [DBG] Minifying resources/css/tmapp.css [DBG] Load url is file:/C:/Documents and Settings/userk/bin/Sencha/Cmd/3.1.1.270/lib/yuicompressor-2.4.7.jar [INF] Minified resources/css/tmapp.css ...
Looks like we cannot reproduce this. Please provide another test case to reproduce this issue.


Reply With Quote