conradirwin-serviceworker-loader

    0.1.0 • Public • Published

    View project on npm

    ServiceWorker loader for Webpack

    $ npm install --save-dev serviceworker-loader

    Usage

    Documentation: Using loaders

    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)

    Keywords

    none

    Install

    npm i conradirwin-serviceworker-loader

    DownloadsWeekly Downloads

    1

    Version

    0.1.0

    License

    none

    Last publish

    Collaborators

    • cirwin