asp.net mvc - Reference bundles on requirejs -
I have an old web application that already uses ASP.NET MVC's bundling and minimization.
Now I am starting using the requirejs and I have a problem! How can I reference bundled files with requirejs?
I know there is one more question, but this does not answer my question!
I hope that I understand your question correctly.
If your bundle requires module module
and you are loading it on the page, then by calling it to module
,
Code> feedback and a a library
module.
aLibrary
that is defined in the bundle In your page, you can call that module and thus define third party libraries.
& lt; Script & gt; // Define third party libraries ('jquery', [], function () {back jQuery;}); Define ('response', [], function () {return response;}); Use the Libs from // bundle (execute a work from ['a library', 'jquery', 'response'], function (a, j, r) {// a library a.aFunction ();}); & Lt; / Script & gt;
Comments
Post a Comment