lfr-amd-loader
Version:
AMD Loader with support for combo URL and conditional loading
57 lines (42 loc) • 1.54 kB
HTML
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Test Alloy Loader</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
<h1>Alloy Loader like test page</h1>
<script src="//localhost:8080/demo/config/config.js"></script>
<script src="//localhost:8080/loader.js"></script>
<script>
require(['liferay/liferay/liferay'], function(liferay) {
debugger;
}, function(error) {
debugger;
});
require(['liferay2/liferay/liferay2'], function(liferay) {
debugger;
}, function(error) {
debugger;
});
require(['liferay/chema/chemaps/aui-chemaps', 'liferay/aui-dialog'], function(chemaps, dialog) {
debugger;
chemaps.log('nate');
dialog.log('nate');
}, function(error) {
debugger;
console.log(error);
});
require(['liferay/chema/chemaps/aui-chemaps', 'liferay/ambrin/aui-ambrin'], function(chemaps, dialog) {
debugger;
chemaps.log('nate');
dialog.log('nate');
}, function(error) {
debugger;
console.log(error);
});
</script>
</body>
</html>