Skip to content

An assortment of bundling utility classes like custom transformers and fixes for the ASP.NET Web Optimization bundling framework.

License

Notifications You must be signed in to change notification settings

mrbelk/AspNetBundling

 
 

Repository files navigation

AspNetBundling

Build status

An assortment of bundling utility classes like a ScriptWithSourceMapBundle and fixes for the ASP.NET Web Optimization bundling framework.

Get it on NuGet!

Install-Package AspNetBundling

Bundling with SourceMap generation

BundleTable.Bundles.Add(new ScriptWithSourceMapBundle("MyBundleVirtualPath")
  .Include("MyJsFileOne.js", "MyJsFileTwo.js")
);

Known issues:

  1. A current bug in AjaxMin reported by @LodewijkSioen here https://ajaxmin.codeplex.com/workitem/21834, causes the minification to hang when the debugger is attached and we're trying to do proper sourcemapping. As such, to avoid more harm than good, we don't support proper source mapping in this scenario until AjaxMin fixes it's bug.

Bundling with Css Rewrite Url Tranformer fix

BundleTable.Bundles.Add(new StyleBundle("MyBundleVirtualPath")
  .Include("MyCssFileOne.css, new CssRewriteUrlTransformFixed())
  .Include("MyCssFileTwo.css, new CssRewriteUrlTransformFixed())
);

About

An assortment of bundling utility classes like custom transformers and fixes for the ASP.NET Web Optimization bundling framework.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 71.9%
  • JavaScript 22.2%
  • HTML 5.4%
  • Other 0.5%