worker-loader

worker loader module for webpack

worker loader for webpack

Documentation: Using loaders

var MyWorker = require("worker!./file.js");
 
var worker = new MyWorker();
worker.postMessage({a: 1});
worker.onmessage = function(event) {...};
worker.addEventListener("message", function(event) {...});

MIT (http://www.opensource.org/licenses/mit-license.php)