sencha touch 的4中build

来源:互联网 发布:篮球赛程编排软件 编辑:程序博客网 时间:2024/06/04 23:22


sencha app build 后面一般会有一个参数,不同的参数编译出来的效果不同,具体参照下面:



  • 'testing' is meant for QA prior to production. All JavaScript and CSS source Files are bundled, but not minified, which makes it easier for debugging if needed
用于测试,只是把所有的js打包成一个app.js
  • 'package' creates a self-contained, re-distributable production build that normally runs from local file system without the need for a web server
只打包了关联的js

  • 'production' creates a production build that is normally hosted on a web server and serves multiple clients (devices). The build is offline-capable using HTML 5 application cache, and has built-in over-the-air delta updating feature
自动生成了离线缓存

  • 'native' first generates a 'package' build, then packages it as a native application, ready to be deployed to native platforms
  • 这种方式生成My Application.app,用于ios产品封装

原创粉丝点击