ng serve does not generate service worker files #18876
Labels
area: @angular-devkit/build-angular
devkit/build-angular:dev-server
feature
Issue that requests a new feature
Milestone
🚀 Feature request
Command (mark with an
x
)Description
A clear and concise description of the problem or missing capability...The command
ng serve
currently does not generate service worker files.It may be because in the past it was not possible to register service workers in non SSL sites.
There is now a exception to that, all
http://localhost
orhttp://127.x.y.z
addresses do work (at least in Chrome)This was already shortly discussed in #16883 (comment) but only the generation for
ng build --watch
was implemented.ng serve
& serve-ssr do not generate these files.Describe the solution you'd like
If you have a solution in mind, please describe it.Generate the needed service worker files in
@angular-devkit/build-angular:dev-server
&@nguniversal/builders:ssr-dev-server
Describe alternatives you've considered
Have you considered any alternative solutions or workarounds?Build the universal server & run that without serve-ssr, which is really cumbersome in development
The text was updated successfully, but these errors were encountered: