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;