Removed NPX from webpack bin call (#728)

This commit is contained in:
Jack Wilkinson 2022-10-07 17:03:57 +01:00 committed by GitHub
parent 893293e825
commit 4b7b864a73
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -207,10 +207,9 @@ class MixCompile extends Command
$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;