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 // Define custom modules ('aLibrary', [], function () {return {aFunction} : Function () {Console.log ('a function within a library');}}});

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

Popular posts from this blog

ios - How do I use CFArrayRef in Swift? -

eclipse plugin - Run java code error: Workspace is closed -

c - Error on building source code in VC 6 -