GitBucket
4.6.0
var run = require('parallel-webpack').run,
configPath = require.resolve('./webpack.config.js'),
options = {
watch: false,
maxRetries: 1,
stats: false, // defaults to false
maxConcurrentWorkers: 2 // use 2 workers
};
function notify() {
// do things
console.log('编译完成!')
}
run(configPath, options, notify);