Skip to content

Commit

Permalink
fix: Fix webpack command
Browse files Browse the repository at this point in the history
  • Loading branch information
drorganvidez committed Oct 24, 2024
1 parent d518ab5 commit c56e9ee
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions rosemary/commands/webpack_compile.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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'))
Expand Down

0 comments on commit c56e9ee

Please sign in to comment.