-1

I am trying to develop a npm package which I can use in various projects to know whenever there is a build update user will be notified to refresh page.

This concept can be achieved via service-worker in angular, But when I try to add parameter "serviceWorker": true inside the angular.json of my workspace's library object it is not allowing me and throws error as per below enter image description here

deepakchethan
  • 5,240
  • 1
  • 23
  • 33

1 Answers1

0

Service worker can only be integrated inside an angular application. You are getting an error because your project is of type library.

Vimal Patel
  • 2,785
  • 2
  • 24
  • 38