Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

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

Alex Vandiver47e0a8973979
diff --git a/tools/webpack b/tools/webpack
index 101b13c87e9..aac626df4c0 100755
--- a/tools/webpack
+++ b/tools/webpack
@@ -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)