Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign up
Command (mark with an
x)Description
A clear and concise description of the problem or missing capability...The command
ng servecurrently 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://localhostorhttp://127.x.y.zaddresses do work (at least in Chrome)This was already shortly discussed in #16883 (comment) but only the generation for
ng build --watchwas 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-serverDescribe 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