I've registered bundle in BundleConfig like this:
bundles.Add(new ScriptBundle("~/bundles/jqueryupload").Include(
"~/Scripts/jquery.upload-1.0.2.min.js"));
And want to render it on the view like this:
@Scripts.Render("~/bundles/jqueryupload")
But my sript is not included in the page. Any thoughts? Thanks!
Do not include minified versions in your bundles:
ScriptBundle("~/bundles/jqueryupload").Include("~/Scripts/jquery.upload-1.0.2.js"))
The whole point of the bundles is that they will take care of minifying and combining your static resources. You shouldn't register a .min.js
in your bundles.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With