builder-isv
Version:
ISV 模块本地预览与云构建器
19 lines (14 loc) • 416 B
JavaScript
/**
* @author 龙喜<xiaolong.lxl@alibaba-inc.com>
* @description 事件监听
*/
;
function CompilationEventsPlugin(options) {
this.options = options;
}
CompilationEventsPlugin.prototype.apply = function(compiler) {
compiler.plugin('compilation', (compilation) => {
this.options.onCompilation && this.options.onCompilation(compilation);
});
};
module.exports = CompilationEventsPlugin;