All Projects → benmccallum → Aspnetbundling

benmccallum / Aspnetbundling

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

Projects that are alternatives of or similar to Aspnetbundling

Packem
📦⚡ A precompiled JavaScript module bundler
Stars: ✭ 586 (+860.66%)
Mutual labels:  bundler
Csla
A home for your business logic in any .NET application.
Stars: ✭ 865 (+1318.03%)
Mutual labels:  asp-net
Scarab
A system to patch your content files.
Stars: ✭ 38 (-37.7%)
Mutual labels:  bundler
Nopcommerce
The most popular open-source eCommerce shopping cart solution based on ASP.NET Core
Stars: ✭ 6,827 (+11091.8%)
Mutual labels:  asp-net
Learn.forge.viewhubmodels
Learn Forge Tutorial: View your BIM 360 & Fusion models using 3-legged OAuth. Available in Nodejs & .NET
Stars: ✭ 19 (-68.85%)
Mutual labels:  asp-net
Carter
Carter is framework that is a thin layer of extension methods and functionality over ASP.NET Core allowing code to be more explicit and most importantly more enjoyable.
Stars: ✭ 875 (+1334.43%)
Mutual labels:  asp-net
Sheetify
✨ Modular CSS bundler for browserify
Stars: ✭ 443 (+626.23%)
Mutual labels:  bundler
Metro With Symlinks
Metro with Symlinks
Stars: ✭ 49 (-19.67%)
Mutual labels:  bundler
Ps Webapi
(Migrated from CodePlex) Let PowerShell Script serve or command-line process as WebAPI. PSWebApi is a simple library for building ASP.NET Web APIs (RESTful Services) by PowerShell Scripts or batch/executable files out of the box.
Stars: ✭ 24 (-60.66%)
Mutual labels:  asp-net
Notifo
Multi channel notification service for collaboration tools, e-commerce, news service and more.
Stars: ✭ 32 (-47.54%)
Mutual labels:  asp-net
Mytested.webapi
Fluent testing framework for ASP.NET Web API 2.
Stars: ✭ 719 (+1078.69%)
Mutual labels:  asp-net
Vc Platform
VirtoCommerce Platform repository
Stars: ✭ 828 (+1257.38%)
Mutual labels:  asp-net
Parcel Plugin Structurize
A plugin to customize the output (dist) directory structure during production.
Stars: ✭ 29 (-52.46%)
Mutual labels:  bundler
Cofoundry
Cofoundry is an extensible and flexible .NET Core CMS & application framework focusing on code first development
Stars: ✭ 621 (+918.03%)
Mutual labels:  asp-net
Phaser Node Kit
Rapid Game Development with PhaserJS and Node for Modern Browsers
Stars: ✭ 39 (-36.07%)
Mutual labels:  bundler
Orchardcore
Orchard Core is an open-source modular and multi-tenant application framework built with ASP.NET Core, and a content management system (CMS) built on top of that framework.
Stars: ✭ 5,591 (+9065.57%)
Mutual labels:  asp-net
Awesome Microservices Netcore
💎 A collection of awesome training series, articles, videos, books, courses, sample projects, and tools for Microservices in .NET Core
Stars: ✭ 865 (+1318.03%)
Mutual labels:  asp-net
Opentelemetry Dotnet
The OpenTelemetry .NET Client
Stars: ✭ 1,037 (+1600%)
Mutual labels:  asp-net
Nemiro.oauth.dll
Nemiro.OAuth is a class library for authorization via OAuth protocol in .NET Framework
Stars: ✭ 45 (-26.23%)
Mutual labels:  asp-net
Bili
Bili makes it easier to bundle JavaScript libraries.
Stars: ✭ 949 (+1455.74%)
Mutual labels:  bundler

AspNetBundling

Nuget 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")
);

By default, this will create a bundle with no cdnPath, codeMinify on, preserveImportantComments on, and a source map delivered at bundleVirtualPath + "map".

For other variations of this, you can use the another ScriptWithSourceMapBundle constructor, or set the properties on it after instantiation. A more complete list of some examples is in the TestWebsite project > App_Start > BundleConfig.cs.

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())
);

Upgrade guide

v2 to v3

I've changed the default behaviour of bundles to minify code (rather than just remove whitespace) as the default should be the best for the end user. In doing this, some people using Angular that need DI variable names to be maintained will need to ensure they're now opting in to no code minification with the appropriate ScriptWithSourceMapBundle constructor overload.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].