Reconciling ASP.NET script bundles and source maps

Mihai picture Mihai · Dec 6, 2013 · Viewed 8.8k times · Source

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?

Answer

Mihai picture Mihai · Aug 11, 2014

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.