I created my app using the sencha create app command. It is working locally on my machine as well on our web server. I am trying to build the app for production but the following command is not working for me:
sencha app build production
I’m not getting any error messages or output whatsoever. Nothing in the directory changes.
The following command:
sencha build -p appname.jsb3 -v -d .
generates the jsb3 file. However, my index.html is never updated to load the new files. According to the information I have found online, my index.html should be updated to point to the new files.
I think I am missing something somewhere but I can’t find any tutorials online that work for me. Can anyone point me in the right direction? My index.html is pasted below if that helps to determine what I’m doing wrong.
<!DOCTYPE HTML>
<html manifest="" lang="en-US">
<head>
<meta charset="UTF-8">
<title>EGL Mobile</title>
<style type="text/css">
/**
* Example of an initial loading indicator.
* It is recommended to keep this as minimal as possible to provide instant feedback
* while other resources are still being loaded for the first time
*/
html, body {
height: 100%;
}
#appLoadingIndicator {
position: absolute;
top: 50%;
left: 50%;
margin-top: -10px;
margin-left: -50px;
width: 100px;
height: 20px;
}
#appLoadingIndicator > * {
background-color: #FFFFFF;
float: left;
height: 20px;
margin-left: 11px;
width: 20px;
-webkit-animation-name: appLoadingIndicator;
-webkit-border-radius: 13px;
-webkit-animation-duration: 0.8s;
-webkit-animation-iteration-count: infinite;
-webkit-animation-direction: linear;
opacity: 0.3
}
#appLoadingIndicator > :nth-child(1) {
-webkit-animation-delay: 0.18s;
}
#appLoadingIndicator > :nth-child(2) {
-webkit-animation-delay: 0.42s;
}
#appLoadingIndicator > :nth-child(3) {
-webkit-animation-delay: 0.54s;
}
@-webkit-keyframes appLoadingIndicator{
0% {
opacity: 0.3
}
50% {
opacity: 1;
background-color:#1985D0
}
100% {
opacity:0.3
}
}
</style>
<script id="microloader" type="text/javascript" src="sdk/microloader/development.js"></script>
</head>
<body>
<div id="appLoadingIndicator">
<div></div>
<div></div>
<div></div>
</div>
</body>
</html>
Try this:
// first open cmd and run:
// then make sure index.html exists in you path/to/application:
// make sure the file is loading your application and then run the command:
// also execute the 2nd command. note the DOT at the end should be added to the command:
// now our application is built:
Create new html file “built.html” and use the below code:
// now open built.html