July 10, 2014 · frontend

dojo amd config

Dojo's amd environment support baseUrl configuration, howerever, when I was trying to set it up. baseUrl does not behave correctly. Module seems to load from a directory a level up from the expected.

After a while digging in dojo code, I realized this is by intention and I have to include a dojoConfig like this.::

has: { 'config-tlmSiblingOfDojo': 0 } 

The reason is yet to be found.

  • LinkedIn
  • Tumblr
  • Reddit
  • Google+
  • Pinterest
  • Pocket