2015-06-07 11:37 GMT+02:00 voger <vogernewslett...@yahoo.gr>:

> I want to run the source version from a Django server. The main file is
> loaded from the url
>
> "http://127.0.0.1:8000/static/vendors/qssite/source/script/qssite.js";
>
> static/ is an actial folder in the app.The file loads fine. However when
> it requests the subsequent files (libraries, resources etc) it requests
> them from the urls like
>
> http://127.0.0.1:8000/script/qssite.1465c2832300.js
> http://127.0.0.1:8000/source/class/qssite/theme/Decoration.js
>
> How can I tell qooxdoo to insert /static/vendors/qssite in these urls?
>
>
>
> ------------------------------------------------------------------------------
> _______________________________________________
> qooxdoo-devel mailing list
> qooxdoo-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>


Hi,

I had the same problem. Ended up using the following option in my
config.json in the jobs section:

"compile-options": {
  "code" : {
    "decode-uris-plug" : "decode-source-uris.js"
  },
  "paths" : {
    "file" : "./source/script/${APPLICATION}.js"
  },
  "uris": {
    // "add-nocache-param": true
  }
},

Then in decode-source-uris.js:

euri = euri.replace(/^script/, "/static/js/basis/source/script");

That way the uri's for the script part will be correct.

I think thats the only changes I made.

Regards,

Andréas
------------------------------------------------------------------------------
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to