asp.net-mvcrequirejsdurandalhottowelweyland

Durandal weyland optimizations doesn't work while using multiple projects


My project is broken into several projects. One project is the main, and the others are for business domains.

Project.Main
Project.BusinessDomain1
Project.BusinessDomain2

As the weyland is applied to the Project.Main and it's the only project containing a main.js, the only files participate in creating main-built.js are those attached in Project.Main. As a matter of fact I want the other files to remain at their projects and load on demand by controllers later. But the problem is that I used Paths in those files, which weyland optimizer doesn't affect them( to replace the paths with real values).

FYI, I'm using Durandal 2.0.1 and HotTowel template.


Solution

  • There are a few things: