We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 8a12d07 + 84f6319 commit 95faa0cCopy full SHA for 95faa0c
components/bin/pack
@@ -74,17 +74,17 @@ async function readJSON(dir) {
74
return new Promise((ok, fail) => {
75
const buffer = [];
76
const child = spawn(
77
- 'npx',
+ 'node',
78
[
79
- 'webpack',
+ require.resolve(path.join('webpack', 'bin', 'webpack.js')),
80
'--env', `dir=${path.relative(packDir, path.resolve(dir))}`,
81
'--env', `bundle=${bundle}`,
82
'--json',
83
'-c', path.relative(packDir, path.join(compPath, 'webpack.config.' + target))
84
],
85
{
86
cwd: packDir,
87
- shell: true,
+ shell: process.platform === 'Win32',
88
}
89
);
90
child.stdout.on('data', (data) => buffer.push(String(data)));
0 commit comments