create-anu-app icon indicating copy to clipboard operation
create-anu-app copied to clipboard

执行另一个nodejs文件

Open RubyLouvre opened this issue 7 years ago • 0 comments

const { fork } = require('child_process');
var n = fork('./src/build.js');
n.on('exit', (code) => {
    console.log(`Child exited with code ${code}`);
});

build.js为执行 webpack的脚本

RubyLouvre avatar Mar 18 '18 04:03 RubyLouvre