webmodules/bootloader
最新稳定版本:0.2.0
Composer 安装命令:
composer require webmodules/bootloader
包简介
Module loader
README 文档
README
Module Dependency Loader with bundlify
Including Library
<!DOCTYPE html> <html> <head> <title>MyApp</title> </head> <body> <script src="/dist/bootloader_bundled/webmodules.bootloader.js?version=beta-5.7&debug=false"> bootloader({ appContext: '', indexBundle: "myapp/app", debugBundles: [], apiServer: "/data/" }); </script> </body> </html>
define
define({ module : "my.module", extend : "my.parent", using : ["mod1","mod2","mod3"] }).as(function(MyModule,mod1,mod2,mod3){ return { _define_ : function(){ }, _instance_ : function(){ }, _extended_ : function(){ }, _ready_ : function(){ } }; })
module
module(["module1","module2"], function(module1,module2){ });
importStyle
Import StyleSheets packages recursively as mentioned in module.json
__importStyle__("style/package/name");
Hooks
bootloader.module404 = function(moduleName){ //finally raise alert when module not found };
统计信息
- 总下载量: 89
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 3
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-06-24