Skip to content

casperlamboo/plugin-worker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

83 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Plugin Worker

WebWorker plugin for SystemJS

Usage

Install the plugin

jspm install worker=github:casperlamboo/plugin-worker

Load a worker

import Worker from './worker.js!worker';

// API differs little bit from regular Worker
// path to worker is already given in the import
const worker = new Worker();
worker.postmessage('hello world');

#Run Example

Install

npm install

Go to example

cd example/

Start server (for instance serve). Or create production bundle

npm run dist

dist folder will be located in example/dist

About

WebWorker plugin for SystemJS

Resources

Stars

Watchers

Forks

Packages

No packages published