From 2519f8c7df1d7711c5c79a3cfd944deee6d477f5 Mon Sep 17 00:00:00 2001 From: Jack Wilkinson <31214002+jaxwilko@users.noreply.github.com> Date: Fri, 7 Oct 2022 15:18:57 +0100 Subject: [PATCH] Removed NPX from webpack bin call --- modules/system/console/MixCompile.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/modules/system/console/MixCompile.php b/modules/system/console/MixCompile.php index 77cdc7d2dc..fb2c186087 100644 --- a/modules/system/console/MixCompile.php +++ b/modules/system/console/MixCompile.php @@ -207,10 +207,9 @@ protected function createCommand(string $mixJsPath): array $command = $this->argument('webpackArgs') ?? []; array_unshift( $command, - 'npx', - 'webpack', + $basePath . sprintf('%1$snode_modules%1$s.bin%1$swebpack', DIRECTORY_SEPARATOR), 'build', - '--progress', + $this->option('silent') ? '--stats=none' : '--progress', '--config=' . $this->getWebpackJsPath($mixJsPath) ); return $command;