In my development I need to include third part javascripts; like money.js (http://josscrowcroft.github.com/money.js/)
What is the best 'clean'/'proper' way to achieve it ? Just include it in index.html ?
In my development I need to include third part javascripts; like money.js (http://josscrowcroft.github.com/money.js/)
What is the best 'clean'/'proper' way to achieve it ? Just include it in index.html ?
The following worked for me with Ext JS 5.0.0, if the external JavaScript library is local. After the editing, run "sencha app build"
Make changes to three JSON elememtns in app.json. (1) js (2) css (3) resources
If you are using Sencha Cmd your index.html may look like this:
So after changing app.json you'll need to refresh your app:
No. Don't directly add the additional javascript files in the
index.html
file. That is not the recommended way (though it may work).Instead, do like this,
index.html
. microloader is the folder that is shipped with sencha sdk and contains three files mainly,development.js
,production.js
andtesting.js
, each one for it's own purpose.<appname>
folder, you will need to have a file called asapp.json
. It will look something like this ..pure javascript did the trick for me. I just included this block of code in the launch function
var scriptTag = document.createElement('script'); scriptTag.src = 'specify the path here...'; document.body.appendChild(scriptTag);
the scriptTag gets appended into the body of your index file