WebOptimizer
WebOptimizer copied to clipboard
Working Source Map emit for JavaScriptBundle
Enables the creation of Source Maps for Javascript Bundles.
Program.cs example:
services.AddWebOptimizer(pipeline => { . . . pipeline.AddJavaScriptBundle("/js/bundle.js", new WebOptimizer.Processors.JsSettings { GenerateSourceMap = true }, "/ui/crud/jquery-3.7.1.js", "/ui/all/bootstrap/bootstrap.bundle.js"); });
Generates a /js/bundle.js bundle containing jquery and bootstrap, with a sourcemap at /js/bundle.map.js Chrome Dev Tools properly finds and loads it.