forked from ppfun/pixelplanet
set shell for windows
This commit is contained in:
parent
f4c4ca96d3
commit
94a6b49abb
|
@ -70,7 +70,7 @@ function buildServer() {
|
|||
? ['webpack', '--env', 'extract', '--config', './webpack.config.server.js']
|
||||
: ['webpack', '--config', './webpack.config.server.js']
|
||||
const serverCompile = spawn('npx', argsc, {
|
||||
PATH: process.env.PATH,
|
||||
shell: process.platform == 'win32',
|
||||
});
|
||||
serverCompile.stdout.on('data', (data) => {
|
||||
console.log(data.toString());
|
||||
|
@ -94,7 +94,7 @@ function buildServer() {
|
|||
function buildClients(slangs) {
|
||||
return new Promise((resolve, reject) => {
|
||||
const clientCompile = spawn('npm', ['run', 'build', '--', '--client', '--recursion', '--langs', slangs.join(',')], {
|
||||
PATH: process.env.PATH,
|
||||
shell: process.platform == 'win32',
|
||||
});
|
||||
clientCompile.stdout.on('data', (data) => {
|
||||
console.log(data.toString());
|
||||
|
|
Loading…
Reference in New Issue
Block a user