I have incorporated Angular controllers and other functionalities into my ASP.NET Web Forms application. In order to optimize the JS and CSS files, I am trying to utilize the built-in bundling provider from the System.Web.Optimization
dll. However, I am encountering an error when applying bundling to the angular.js
file and my angular code files. I can't seem to figure out what is causing this error.
collection.Add(new ScriptBundle("~/bundles/startupbundle")
.Include("~/Scripts/jquery-2.1.0.js")
.Include("~/Scripts/jquery-ui-1.10.4.min.js")
.Include("~/Scripts/jquery-migrate-1.2.1.min.js")
.Include("~/Scripts/bootstrap.min.js")
.Include("~/Scripts/modernizr-2.7.2.js")
.Include("~/Scripts/jquery.blockUI.min.js")
.Include("~/Scripts/select2.mi![enter image description here][1]n.js")
.Include("~/Scripts/jquery.nicescroll.js")
.Include("~/Scripts/jquery.smartWizard.js")
.Include("~/Scripts/scripts.js")
.Include("~/Scripts/kendo.all.min.js")
.Include("~/Scripts/toastr.min.js")
.Include("~/Scripts/underscore-min.js")
.Include("~/Scripts/bootstrap.min.js")
.Include("~/WebApp/AppScripts/master-page.js")
.Include("~/WebApp/AppScripts/Dasboard.js")
.Include("~/Scripts/angular.min.js")
);