conradirwin-serviceworker-loader
v0.1.0
Published
serviceworker loader module for webpack
Downloads
1
Readme
ServiceWorker loader for Webpack
$ npm install --save-dev serviceworker-loader
Usage
var registerServiceWorker = require("serviceworker!./sw.js");
registerServiceWorker({ scope: '/' }).then(success, error);
Credit
This loader is based almost entirely on worker-loader by @sokra.
License
MIT (http://markdalgleish.mit-license.org)