Brotli.Bundle
1.0.0
.NET Framework 4.6
Install-Package Brotli.Bundle -Version 1.0.0
dotnet add package Brotli.Bundle --version 1.0.0
<PackageReference Include="Brotli.Bundle" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Brotli.Bundle --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Brotli.Bundle, 1.0.0"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install Brotli.Bundle as a Cake Addin
#addin nuget:?package=Brotli.Bundle&version=1.0.0
// Install Brotli.Bundle as a Cake Tool
#tool nuget:?package=Brotli.Bundle&version=1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Brotli can reduce file sizes by up to 30% more than gzip.
This is a simple bundle with Brotli compression that falls back to Gzip and deflate
Installation
You can download this bundle in the NuGet.
How to use
You can use this like the current bundle
/* JS */
bundles.Add(new BrotliScriptBundle("~/bundles/jqueryval", new JsMinify()).Include(
"~/Scripts/jquery.unobtrusive*",
"~/Scripts/jquery.validate*"));
//CDN
bundles.Add(new BrotliScriptBundle("~/bundles/jquery",
"http://code.jquery.com/jquery-2.1.4.min.js"));
/* CSS */
bundles.Add(new BrotliStyleBundle("~/Content/themes/base/css", new CssMinify()).Include(
"~/Content/themes/base/jquery.ui.core.css",
"~/Content/themes/base/jquery.ui.resizable.css",
"~/Content/themes/base/jquery.ui.selectable.css",
"~/Content/themes/base/jquery.ui.accordion.css",
"~/Content/themes/base/jquery.ui.autocomplete.css",
"~/Content/themes/base/jquery.ui.button.css",
"~/Content/themes/base/jquery.ui.dialog.css",
"~/Content/themes/base/jquery.ui.slider.css",
"~/Content/themes/base/jquery.ui.tabs.css",
"~/Content/themes/base/jquery.ui.datepicker.css",
"~/Content/themes/base/jquery.ui.progressbar.css",
"~/Content/themes/base/jquery.ui.theme.css"));
//CDN
bundles.Add(new BrotliStyleBundle("~/Content/bootstrap",
"https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css"));
Thanks
Thanks to nolleto (Author of GzipBundle)
Thanks to XieJJ99 (Author of Brotli.Net)
Product | Versions |
---|---|
.NET Framework | net46 net461 net462 net463 net47 net471 net472 net48 |
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.
-
- Brotli.NET (>= 1.0.0)
- GzipBundle (>= 1.0.0)
- Microsoft.AspNet.Web.Optimization (>= 1.1.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
1.0.0 | 3,691 | 7/19/2018 |
Initial Release