Bazel rules for terser
These rules teach Bazel how to interact with the terser CLI.
Need help? This ruleset has support provided by https://aspect.dev.
From the release you wish to use:
copy the WORKSPACE snippet into your
From a BUILD file
This is the most common usage. See
From a macro
You could write a Bazel macro which uses terser, by calling it from a
This is illustrated in examples/macro.
From a custom rule
The most advanced usage is to write your own custom rule.
This is a good choice if you need to integrate with other Bazel rules via Providers.