requirejs - How to you reference a required script that is bundled? -
i'm working hot towel spa template , i'm trying add in data want breeze. have breeze nuget package installed , breeze script files in scripts folder of site.
i can reference using actual file name following:
define(['durandal/app', '../scripts/breeze.min.js'], function (app, breeze) { ... });
however, break when site running in release mode , script bundled. plus, ugly , feels hack put full name in there.
what correct way this?
by default durandal loads external libraries via normal script calls not via requirejs. same true hottowel.
e.g. https://github.com/bluespire/durandal/blob/master/index.html#l31
or if platform supports via bundling
simply load breeze before requiring main.js , should go.
Comments
Post a Comment