Brotli.Bundle
1.0.0
Brotli offers up to 30% more compression than gzip. This is a simple bundle with Brotli compression with fallback to gzip and deflate
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" />
paket add Brotli.Bundle --version 1.0.0
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)
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)
Release Notes
Initial Release
Dependencies
-
- Brotli.NET (>= 1.0.0)
- GzipBundle (>= 1.0.0)
- Microsoft.AspNet.Web.Optimization (>= 1.1.0)
Used By
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version History
Version | Downloads | Last updated |
---|---|---|
1.0.0 | 1,592 | 7/19/2018 |