Just a wild guess (I'm still reading the documentation), but in the Alloy template site's module.config file looks like this:
<dojoModules> <!-- Add a mapping from alloy to ~/ClientResources/Scripts to the dojo loader configuration -->
<add name="alloy" path="Scripts" /> </dojoModules>
Their "path" points to "Scripts" and that gives you a link to "~/ClientResources/Scripts". While you add "Scripts" as well but you want to point to "~/ClientResources/js". By the same logic shouldn't you write it like this(?):
<dojoModules> <add name="MobileWeb" path="js" /> </dojoModules>
Please check my answer here. Does it help?
I have some trouble adding my dojo module to the user interface.
It tries to access in the episerver/shell.
I have added a module.conifg;
Added my dojo module at ~/ClientResources/js/KeyValueEditor.js, named the module
and in my block type:
It works sometimes, but when I changed the dojoModules -> add name attribute to MobileWeb, it wont work anymore.
Anyone knows what this can be?