Skip to content

A simple Bundle with Brotli compression that falls back to Deflate and Gzip

License

Notifications You must be signed in to change notification settings

Moffmo/Brotli.Bundle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

BrotliBundle

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)

About

A simple Bundle with Brotli compression that falls back to Deflate and Gzip

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages