edp-build-parallel
v1.0.2
Published
edp-build parallelly
Downloads
7
Readme
edp-build-parallel
edp-build parallelly
Usage
edp-build-config.js:
var ParallelProcessor = require('edp-build-parallel');
exports.getProcessors = function () {
var jsProcessor = new JsCompressor();
var addCopyright = new AddCopyright();
var outputCleaner = new OutputCleaner();
var afterProcessor = new ParallelProcessor([
addCopyright, outputCleaner
]); // 并行处理
return [ jsProcessor, afterProcessor ]; // 串行处理
});