PDA

View Full Version : How to include a custom css file (sencha cmd build)



Malro
8 Apr 2013, 1:14 AM
How to include a custom css file, that sencha cmd will include that file while doing a build?

Or where to put my custom css? (only small stuff, e.g. styling rows in grid)

Arg0n
8 Apr 2013, 2:35 AM
Just put the CSS in the "resource" folder and it should be copied into the build =)

Malro
8 Apr 2013, 2:59 AM
and how to mergy my custom css (file) into app-all.css file?

Arg0n
8 Apr 2013, 3:55 AM
Phew... Why do you want to merge the files? :x

Malro
8 Apr 2013, 5:02 AM
why only merge js? one css file > two css files, not?

Arg0n
8 Apr 2013, 5:54 AM
Thats right...

I would suggest YUI Compressor (http://yui.github.io/yuicompressor/css.html) than and the Sencha Cmd compile function (http://docs.sencha.com/ext-js/4-1/#!/guide/command_compiler). But I have to say, I have no clue how it will work with Sencha Cmd.
I know YUI can handle this alone...

kbujold
31 Jul 2013, 5:38 AM
Has someone figured this our? I read you are suppose to add the .css in the app.json file but that did not work for me.


{ "name": "TestApp",


"requires": [
],


"css": [
{
"path": "resources/css/font-awesome.min.css.css",
"remote":true
},
{
"path": "resources/css/adtran.css",
"remote":true
}
],








}

movys
6 Aug 2013, 3:57 AM
I'm struggling with the same problem.

AFAIK, app.json is used only by Sencha Touch - it does not work with Ext JS apps.