13d415f8e3
Most of our changes have been upstreamed, but the toolchain change probably won't be merged soon, and a separate git repo will make it easier to track upstream changes. @hgiesel output_css=True will need to be changed to output_css="foo.css" instead
12 lines
270 B
Python
12 lines
270 B
Python
load("@esbuild_toolchain//:esbuild.bzl", _esbuild = "esbuild_macro")
|
|
|
|
def esbuild(name, **kwargs):
|
|
_esbuild(
|
|
name = name,
|
|
minify = select({
|
|
"//:release": True,
|
|
"//conditions:default": False,
|
|
}),
|
|
**kwargs
|
|
)
|