WebOptimizer icon indicating copy to clipboard operation
WebOptimizer copied to clipboard

Working Source Map emit for JavaScriptBundle

Open b9chris opened this issue 1 year ago • 0 comments

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.

b9chris avatar Jun 12 '24 20:06 b9chris