Code coverage report for lib\webworker\WebWorkerTemplatePlugin.js

Statements: 100% (8 / 8)      Branches: 100% (0 / 0)      Functions: 100% (3 / 3)      Lines: 100% (8 / 8)      Ignored: none     

All files » lib\webworker\ » WebWorkerTemplatePlugin.js
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16        1 1   1   1 1 1 1 1    
/*
	MIT License http://www.opensource.org/licenses/mit-license.php
	Author Tobias Koppers @sokra
*/
var WebWorkerMainTemplatePlugin = require("./WebWorkerMainTemplatePlugin");
var WebWorkerChunkTemplatePlugin = require("./WebWorkerChunkTemplatePlugin");
 
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());
	});
};