Build durandal optimization