Hi,
Following situation for a test project - let's call it "abc.desktop":
config.json snippet
"libraries" :
{
"library" :
[
{
"manifest" : "../abc.core/Manifest.json"
}
]
},
"source-script" : {
"add-script" : [
{
"uri" :
"../../abc.core/source/resource/abc/core/d3.v2.min.js"
},
{
"uri" :
"../../abc.core/source/resource/abc/core/openlayers/OpenLayers.debug.js"
}
],
"add-css" : [
{
"uri" :
"../../abc.core/source/resource/abc/core/chart.css"
}
]
},
"build-script" : {
"add-script" : [
{
"uri" : "resource/abc/core/d3.v2.min.js"
},
{
"uri" :
"resource/abc/core/openlayers/OpenLayers.js"
}
],
"add-css" : [
{
"uri" : "resource/abc/core/chart.css"
}
]
}
"Source" builds and runs without a problem.
"Build" has some trouble to insert the needed script tags into index.html
(it only contains abc.desktop.js).
The needed scripts are at their proposed location (checked that via file
system and http), but the (web-)application does not attempt to load them.
Neither any script tags inside index.html, nor any "traffic" on the
"Network" tab inside the browsers developer tools.
The application stops loading, stating "Uncaught ReferenceError: d3 is not
defined".
Now I found something interesting:
If I manually add the d3 lib into index.html (of course source version,
which gets copied over into build), suddenly add-script works again:
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>abc.desktop</title>
<link rel="stylesheet" type="text/css" href="resource/abc/core/chart.css">
</head>
(Please notice, that d3.v2.min.js is now included twice.)
Another note: This lib, desktop, 3rd-lib approach works for newly created
projects and worked here to a certain point. Unfortunately I missed that
point. Did not build enough "builds" ;)
Regards,
non
--
View this message in context:
http://qooxdoo.678.n2.nabble.com/add-script-css-problem-does-not-insert-script-css-tags-tp7581132.html
Sent from the qooxdoo mailing list archive at Nabble.com.
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel