From c56e9eea944b6979642510d9da3049de8eed5735 Mon Sep 17 00:00:00 2001 From: drorganvidez Date: Thu, 24 Oct 2024 17:18:05 +0200 Subject: [PATCH] fix: Fix webpack command --- rosemary/commands/webpack_compile.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/rosemary/commands/webpack_compile.py b/rosemary/commands/webpack_compile.py index 7893425d..0de0b832 100644 --- a/rosemary/commands/webpack_compile.py +++ b/rosemary/commands/webpack_compile.py @@ -66,7 +66,7 @@ def compile_module(module, watch, production): # Define additional options depending on the environment (source maps and minimization) if production: # In production, minimization is enabled by default in Webpack production mode - extra_flags = '--optimize-minimize' + extra_flags = '' else: # In development, enable source maps extra_flags = '--devtool source-map --no-cache' @@ -77,7 +77,6 @@ def compile_module(module, watch, production): # Use Popen to execute the command without blocking the console try: if watch: - logger.info("usrted") # Execute in the background without blocking the console, redirecting only stderr to os.devnull subprocess.Popen(webpack_command, shell=True, stdout=None, stderr=subprocess.DEVNULL) click.echo(click.style(f"Started watching {module} in {mode} mode!", fg='blue'))