mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-31 07:40:33 +00:00
modify to npm run generate
This commit is contained in:
parent
e49424fb6b
commit
5ae14ff01a
@ -103,7 +103,7 @@ export default async function () {
|
||||
const workers = routes.length < numWorkers ? routes.length : numWorkers
|
||||
for (let i = 0; i < workers; i++) {
|
||||
prmiseArray.push(new Promise((resolve) => {
|
||||
childProcess.exec(`node ./bin/nuxt generate . child-${i}`, (err, stdout, stderr) => {
|
||||
childProcess.exec(`npm run generate . child-${i}`, (err, stdout, stderr) => {
|
||||
if (err) {
|
||||
debug(`child-${i} has error ${err}`)
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user