mirror of https://github.com/webpack/webpack.git
18 lines
792 B
JavaScript
18 lines
792 B
JavaScript
/*
|
|
MIT License http://www.opensource.org/licenses/mit-license.php
|
|
Author Tobias Koppers @sokra
|
|
*/
|
|
var WebWorkerMainTemplatePlugin = require("./WebWorkerMainTemplatePlugin");
|
|
var WebWorkerChunkTemplatePlugin = require("./WebWorkerChunkTemplatePlugin");
|
|
var WebWorkerHotUpdateChunkTemplatePlugin = require("./WebWorkerHotUpdateChunkTemplatePlugin");
|
|
|
|
function WebWorkerTemplatePlugin() {}
|
|
module.exports = WebWorkerTemplatePlugin;
|
|
WebWorkerTemplatePlugin.prototype.apply = function(compiler) {
|
|
compiler.plugin("this-compilation", function(compilation) {
|
|
compilation.mainTemplate.apply(new WebWorkerMainTemplatePlugin());
|
|
compilation.chunkTemplate.apply(new WebWorkerChunkTemplatePlugin());
|
|
compilation.hotUpdateChunkTemplate.apply(new WebWorkerHotUpdateChunkTemplatePlugin());
|
|
});
|
|
};
|