Extjs4 build tool

Source: Internet
Author: User
Developed a front end with extjs4. The changes in extjs4 are very significant and regulate the MVC development mode of extjs4. This makes it much easier for js to develop large projects. Like!

This article records the packaging of extjs. Most of the content is from the official documentation.

Problems encountered in practice :
    • In my project,-A localfile does not work,-A http: // XXXX. Strange: HTML/JSCodeNo dynamic content. For the discussion on this issue on the official website, refer to this post:
      Http://www.sencha.com/forum/showthread.php? 136032-sdktools-3-buggy-sencha-sdk-tools
    • Jsb3 default entry JS is % jsb3 file name %. js. If the file cannot be found, no error is reported during build, but the entry file is missing when app-all is generated. Just modify the jsb3 file manually.

Extjs packaging:

 
Sencha create JSB-A index.html-P app. jsb3
Or:
 
Sencha create JSB-A http: // localhost/helloext/index.html-P app. jsb3
Then we will get a jsb3 file (jsbuilder File Format) Where jsbuilder is sencha Your own tools. Then:
 
Sencha build-P app. jsb3-D.
Then the tool will generate 2 JS files: all-classes.js this file contains all of your application's classes. it is not minified so is very useful for debugging problems with your built application. in our example this file is empty because our "Hello ext" application does not contain any classes.
App-all.js This file is a minimized build of your application plus all of the ext JS classes required to run it. It is the minified and production-ready version All-classes.js + app. js . Use the following files in the production environment:
 
<HTML>  

Note: The use of Ext. js instead of the ext-debug.js, app-all.js instead of APP. js last: fast! Download tool:

Http://www.sencha.com/products/sdk-tools/download/

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.