You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

additional-service-worker-builder

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

additional-service-worker-builder

Additional service worker builder.

0.0.2
latest
npmnpm
Version published
Weekly downloads
39
333.33%
Maintainers
1
Weekly downloads
 
Created
Source

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

FAQs

Package last updated on 29 Sep 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts