webpack: Silence out-of-date warnings from caniuse browserslist.

This commit is contained in:
Alex Vandiver
2023-05-02 15:31:50 +00:00
committed by Tim Abbott
parent 578ddbc5c8
commit 47e0a89739

View File

@@ -27,6 +27,11 @@ def build_for_prod_or_puppeteer(quiet: bool) -> NoReturn:
]
if quiet:
webpack_args += ["--stats=errors-only"]
# Silence warnings from "browserslist" about using old data; those
# warnings are only useful for development
os.environ["BROWSERSLIST_IGNORE_OLD_DATA"] = "1"
os.execvp(webpack_args[0], webpack_args)