简体   繁体   English

如何使用dojo定制构建

[英]how-to use dojo custom build

I'm developing a mobile app with Dojo and I'm using the Dojo toolkit SDK (about 30 MB) For an HTML 5 mobile app it would be toooooo large to assemble it in an app package for Android, iOS or Windows Phone and hopefully after Binging and Googling for a solution to get only the "required" modules and I've found it on 我正在使用Dojo开发移动应用程序,并且正在使用Dojo工具包SDK(约30 MB)对于HTML 5移动应用程序来说,太大了,无法将其组装到适用于Android,iOS或Windows Phone的应用程序包中在Binging和Googling寻求仅获得“必需”模块的解决方案之后,我在

build.dojotoolkit.org build.dojotoolkit.org

I uploaded my index.html single file to get automatically the 33 required packages and downloaded the generated custom build (about 500 KB) ... 我上传了index.html单个文件,以自动获取33个必需的软件包,并下载了生成的自定义版本(约500 KB)...

The issue now is how can I use this custom build of Dojo Thanks. 现在的问题是如何使用此定制构建的Dojo Thank。

您只需要在项目中包含Dojo.js(在下载的zip文件中)即可,该项目将包含所需的所有Dojo模块,而无需使用CDN。

<script src="dojo/dojo.js" type="text/javascript"></script>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM