Reconciling ASP.NET script bundles and source maps

asp.net, bundling-and-minification, javascript

Solution

It looks like in the meantime some kind soul has released a custom class that does exactly what I need.

You can get his source at https://github.com/benmccallum/AspNetBundling.

Problem

Is there any way to set up the default `System.Web.Optimization.ScriptBundle` to generate source maps for the bundled and minified files? Is there an equivalent solution, other than having to pre-generate the bundles and source maps before each build?

Original source