jeudi 3 juillet 2014

How can I do that the index.html load ext-all.js and app-all.js (Ext5,CMD5)

How can I do that make the index.html load ext-all.js and app-all.js.

And how to build app.js to app-all.js.

index.html:



HTML Code:



<!DOCTYPE HTML>
<html>
<head>
<meta charset="UTF-8">
<title>Test</title>
<!-- Ext CSS -->
<link rel="stylesheet" href="build/production/TEST/resources/ext-all.css">
<!-- APP CSS -->
<link rel="stylesheet" href="build/production/TEST/resources/app-all.css">
<!-- Ext JS -->
<script src="build/production/TEST/ext-all.js"></script>
<!-- APP JS -->
<script src="build/production/TEST/app-all.js"></script>
</head>
<body></body>
</html>

app.js:

Code:



Ext.application({
requires: ['Ext.container.Viewport', 'Ext.window.MessageBox'],
name: 'TEST',
appFolder: 'app',
controllers: [
'Menu',
'Users',
'Header'
],
views: [
'Top',
'Left',
'Bottom',
'Main'
],
launch: function() {
Ext.get('loading').hide();
Ext.get('loading-mask').setOpacity(0, true);


Ext.create('Ext.container.Viewport', {
layout: 'border',
items: [
{xtype: 'Top'},
{xtype: 'Left'},
{xtype: 'Main'},
{xtype: 'Bottom'}
]
});


setTimeout(function() {
Ext.get('loading-mask').hide();
}, 100);
}
});

Can I use CMD5 build app.js to app-all.js, please?


Aucun commentaire:

Enregistrer un commentaire