开发者

Build custom Extjs for panel

I'm using an extjs panel that shows information that the user can show or hide. Everything works smoothly. But ext-all.js's size is too big and 开发者_运维百科I've been looking around and saw that there is a possibility to customize it to just use the parts you need. I tried the site's "Build your own" but says the page is not found.

Anyone knows how to reduce the size of the ext-all.js? Or build a custom one?


You can build your own extjs with jsbuilder, which is a software (exists in java and in python.

You'll have to modify the .jsb file, in order to manage dependencies. You can look at how the pkgs files are built.

This is quite difficult, though, to find your way through the dependencies.

The command line looks like (on linux) :

java -jar /path/to/JSBuilder2.jar --projectFile $BUILDDIR/ext-lsi.jsb2 --homeDir $DESTDIR

I use it often, it's working well now.

But I'm quite sure this will be another adventure for Ext4.

Links

  • Sencha Forum about jsbuilder
  • Tutorial


In your download of ExtJS there is a pkgs directory which contains some prebuilt parts.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜