Closed ifandelse closed 10 years ago
try with
require.config({
baseUrl : '/',
paths : {
"jquery" : "../components/jquery/jquery",
"infuser" : "../components/Knockout.js-External-Template-Engine/ext/infuser",
"TrafficCop" : "../components/Knockout.js-External-Template-Engine/ext/TrafficCop",
"ko" : "../components/knockoutjs/build/output/knockout-latest",
"koext" : "../components/Knockout.js-External-Template-Engine/lib/koExternalTemplateEngine-amd",
"mainViewModel" : '../scripts/models/mainViewModel',
"domReady" : "../components/requirejs-domready/domReady"
},
"shim" : {
"infuser" : {
"deps": ["jquery"],
"init": function(a){
return window.infuser;
}
},
"TrafficCop" : {
"deps": ["jquery"]
}
}
});
Just need to add an AMD-style wrapper for the build process.