@ Scripts.Render does not work

I registered the package in BundleConfig as follows: bundles.Add(new ScriptBundle("~/bundles/jqueryupload").Include( "~/Scripts/jquery.upload-1.0.2.min.js"));

And I want to do it in the form as follows: @Scripts.Render("~/bundles/jqueryupload")

But my sript is not included in the page. Any thoughts? Thanks!

+8
asp.net-mvc bundling-and-minification
source share
1 answer

Do not include miniature versions in your packages:

 ScriptBundle("~/bundles/jqueryupload").Include("~/Scripts/jquery.upload-1.0.2.js")) 

The whole point of bundles is that they take care of minimizing and pooling your static resources. You should not register .min.js in your packages.

+22
source share

All Articles