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

https://github.com/johnpapa/pluralsightspajumpstartfinal/blob/master/spajumpstart/app_start/bundleconfig.cs#l18

simply load breeze before requiring main.js , should go.


Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -