sencha touch 的4中build

本文介绍了使用 Sencha App Build 工具时不同参数的作用及编译效果,包括 'testing' 用于 QA 测试,'package' 创建独立的发行版,'production' 生成适用于 Web 服务器的生产版本,并支持离线缓存,以及 'native' 用于 iOS 本地应用的封装。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >


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产品封装

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值