Hey guys. Have you tried using a reference js file that simply contains variables in SS2.0? For example, in SS1.0, i simply attached it as library file on the script definition. In SS2.0, if I have a file that contains java script variables to be used by other scripts, how would i do that?
Do i still need to use the full syntax to include
define([],
function() {
return{
'myVar1':{'test':'test'},
'myVar2':{'moretest':'moretext'}
}
}
I used to use this method so that I can use schedule script to generate a JS variable files.