mirror of
https://github.com/zulip/zulip.git
synced 2025-11-01 20:44:04 +00:00
webpack: Disable CompressionPlugin for Puppeteer tests.
Zopfli is very slow and the development server does not use its output anyway. Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Anders Kaseorg
parent
30c54d023b
commit
cd701c8468
@@ -29,6 +29,8 @@ def build_for_prod_or_puppeteer(quiet: bool, config_name: str | None = None) ->
|
||||
webpack_args += ["--stats=errors-only"]
|
||||
if config_name is not None:
|
||||
webpack_args += [f"--config-name={config_name}"]
|
||||
if "PUPPETEER_TESTS" in os.environ:
|
||||
webpack_args.append("--env=puppeteer_tests")
|
||||
|
||||
# Silence warnings from "browserslist" about using old data; those
|
||||
# warnings are only useful for development
|
||||
|
||||
Reference in New Issue
Block a user