angular-cli icon indicating copy to clipboard operation
angular-cli copied to clipboard

Service Worker - Ng Prod in Watch Mode - Future Request

Open Max-Lev opened this issue 8 years ago • 5 comments

Hi, is it possible to make service-worker available/generated in a Watch Mode?

At this moment, in case of "ng build --prod -w" service worked not generated.

Max-Lev avatar Feb 15 '18 12:02 Max-Lev

I agree this would be a great future so you can test your service workers locally for push notifications.

cyraid avatar Jul 15 '18 18:07 cyraid

@cyraid Any progress on this?

idenisovs avatar Feb 29 '20 18:02 idenisovs

Oh I was just commenting it'd be nice haha .. Though it does look like it's still relevant. Right now I'm sure people would have to rig up copying files through the serve/watch process (to copy your service worker config file) through the angular.json assets config (using globs if necessary), and making sure you're serving on https and your local security certificate has been accepted in the browser (or in the systems cert chains).

cyraid avatar Feb 29 '20 20:02 cyraid

Thanks for reporting this issue. This issue is now obsolete due to changes in the recent releases. Please update to the most recent Angular CLI version.

If the problem persists after upgrading, please open a new issue, provide a simple repository reproducing the problem, and describe the difference between the expected and current behavior.

alan-agius4 avatar Oct 21 '20 14:10 alan-agius4

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.