modify to npm run generate

This commit is contained in:
ausir 2017-05-22 03:59:49 +08:00
parent e49424fb6b
commit 5ae14ff01a

View File

@ -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 {