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?
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.
Nothing built in yet, although I wish it was. That being said, if you don't have to use the built in optimizer you could opt for Web essentials found here and use it to create bundles with map files for you. These bundles are kept up to date as you save changes to the source js files so you would not need to recreate the bundles per build.
©2020 All rights reserved.