shared-worker-loader

Shared Worker loader for Webpack

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
shared-worker-loader
940.2.05 years ago7 years agoMinified + gzip package size for shared-worker-loader in KB

Readme

Shared Worker loader
Shared Worker loader for Webpack.

Usage

Documentation: Using loaders
var sharedWorker = require('shared-worker!./file.js')

var worker = new sharedWorker(name) // name is optional
worker.port.onmessage = (e) => {...}
worker.port.postMessage({foo: 'bar'})
worker.port.start()

Credits

Thanks @sokra for providing the codebase found within worker-loader!

License

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