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

awr/AspNetBundling

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AspNetBundling

An assortment of bundling utility classes like custom transformers that can generate source maps and fixes for the ASP.NET Web Optimization bundling framework.

I plan on releasing this as a NuGet package, but I've never gotten that far, so for the people who just want the code, here it all is.

Disclaimer: I haven't got VS on this computer (I'm out and about) so haven't built this, let me know if there is anything amiss like namespaces or missing files. Cheers.

Bundling with SourceMap generation

(note: has a dependency on AjaxMin which can be grabbed from NuGet. Currently it seems it only supports .js.map generation, but my builder should support CSS once AjaxMin does.)

BundleTable.Bundles.Add(new AjaxMinBundle("MyBundleVirtualPath", BundleFileTypes.JavaScript)
  .Include("MyJsFileOne.js", "MyJsFileTwo.js")
);

Bundling with Css Rewrite Url Tranformer fix

BundleTable.Bundles.Add(new AjaxMinBundle("MyBundleVirtualPath", BundleFileTypes.StyleSheet)
  .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

Releases

No releases published

Packages

No packages published

Languages

  • C# 100.0%