Skip to content
A Bazel rule and helper function for compressing files with Brotli
Python Shell
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.bazelci
brotli
docs
examples
.gitignore
BUILD
LICENSE
README.md
WORKSPACE
update-docs.sh

README.md

rules_brotli

A Bazel rule and function for compressing files with Brotli.

Setup

To use this library, add the following to your WORKSPACE file:

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

http_archive(
    name = "d2l_rules_brotli",
    sha256 = "bef45321ba8030e11c4e9935591c5a656d5da3a6147ab8558c31af8f764e3a92",
    strip_prefix = "rules_brotli-56bcb605599c1b5ef23bc68aef7b0985bfda7c76",
    urls = [
        "https://github.com/brightspace/rules_brotli/archive/56bcb605599c1b5ef23bc68aef7b0985bfda7c76.tar.gz",
    ],
)

load("@d2l_rules_brotli", "brotli_repositories")

brotli_repositories()

Overview

The rule brotli_compressed_files can be used to compress a set of files. See examples/BUILD for an example of using it.

If you want to use Brotli inside your own rules, the brotli_compress_file function can be used inside your rule implementation to create that action. See the implementation of the brotli_compressed_files rule for an example of using it.

See the API Reference for the full details.

You can’t perform that action at this time.