Nacho Printing Machine

    additional-service-worker-builder
    TypeScript icon, indicating that this package has built-in type declarations

    0.0.2 • Public • Published

    Additional Service Worker Builder

    for https://github.com/angular/universal/issues/1505

    ⚠️️⚠️️⚠️️This Builder No Long-term Maintenance Plans⚠️️⚠️️⚠️️

    Use

    Install the builder package.

    $ npm i additional-service-worker-builder -D --save

    Add command in angular.json.

    {
      "architect": {
        "service-work": {
            "builder": "additional-service-worker-builder:service-worker",
            "options": {
              "browserTarget": "<project_name>:build:production"
            }
        }
      }
    }

    Run command to build service worker files.

    $ ng run <project_name>:service-work

    Now your destination folder should have these extra files in it.

    .
    ├── ngsw-worker.js
    ├── ngsw.json
    ├── safety-worker.js
    └── worker-basic.min.js

    Keywords

    none

    Install

    npm i additional-service-worker-builder

    DownloadsWeekly Downloads

    16

    Version

    0.0.2

    License

    MIT

    Unpacked Size

    6.17 kB

    Total Files

    7

    Last publish

    Collaborators

    • hsuanlee