I've used Bundleconfig.cs to bundle my javascript files as follows:
bundles.Add(new ScriptBundle("~/bundles/resultscripts").Include(
"~/Scripts/spectrum.js",
"~/Scripts/notify.js",
"~/Scripts/spin.min.js"));
BundleTable.EnableOptimizations = true;
Then in my .cshtml file, I've got the following:
@Scripts.Render("~/bundles/resultscripts");
This renders in chrome as:
<script src="/bundles/resultscripts?v=3ozhz2yni5K8Is0g9QoONh_MkoivcBzooVIUD-a0Ngw1"></script>
Then I have the following under system.web in my Web.config (not sure how much this matters):
<compilation debug="true" targetFramework="4.5.2" />
This is good because it allows bundle versioning. However, some of my javascript doesn't seem to be firing, and when in Chrome, I can now no longer place breakpoints in my individual javascript files. Or to be more clear, I can't find notify.js for example. I'm guessing this is because the bundle is being minified.
If I set BundleTable.EnableOptimizations = false;
my javascript files render but are no longer versioned.
I was wondering if anyone could point me in the right direction so that I can find the individual files when bundling with versions?
I checked out this: Script bundles not rendering individual files in debug, and am using the same syntax, but my files are not getting rendered individually.