Mercurial
comparison MODULE.bazel @ 241:9c2eec61a152
[assets] Generate site images as WebP with Bazel
| author | MrJuneJune <me@mrjunejune.com> |
|---|---|
| date | Mon, 03 Aug 2026 11:26:30 -0700 |
| parents | 3fa4bf481f42 |
| children | 543df0fe7168 |
comparison
equal
deleted
inserted
replaced
| 240:c345083cd8a7 | 241:9c2eec61a152 |
|---|---|
| 28 filegroup( | 28 filegroup( |
| 29 name = "chromium", | 29 name = "chromium", |
| 30 srcs = glob(["**"], exclude = ["BUILD.bazel"]), | 30 srcs = glob(["**"], exclude = ["BUILD.bazel"]), |
| 31 visibility = ["//visibility:public"], | 31 visibility = ["//visibility:public"], |
| 32 ) | 32 ) |
| 33 """, | |
| 34 ) | |
| 35 | |
| 36 http_archive( | |
| 37 name = "libwebp_linux_x86_64", | |
| 38 urls = ["https://storage.googleapis.com/downloads.webmproject.org/releases/webp/libwebp-1.6.0-linux-x86-64.tar.gz"], | |
| 39 sha256 = "1c5ffab71efecefa0e3c23516c3a3a1dccb45cc310ae1095c6f14ae268e38067", | |
| 40 strip_prefix = "libwebp-1.6.0-linux-x86-64", | |
| 41 build_file_content = """ | |
| 42 exports_files(["bin/cwebp"]) | |
| 33 """, | 43 """, |
| 34 ) | 44 ) |
| 35 | 45 |
| 36 node = use_extension("@rules_nodejs//nodejs:extensions.bzl", "node") | 46 node = use_extension("@rules_nodejs//nodejs:extensions.bzl", "node") |
| 37 node.toolchain(node_version = "20.18.0") | 47 node.toolchain(node_version = "20.18.0") |