Skip to content

Add support for SharedWorker in ng-cli #20279

Open
@rhofour

Description

@rhofour

🚀 feature request

Relevant Package

This feature request is for @angular/cli

Description

ng generate can currently handle web-workers and service-workers, but not shared-workers. It would be very helpful if shared workers could be handled similarly.

Right now there's very little documentation about how to setup shared workers with angular, unlike web workers where I can simply call ng generate web-worker and start filling in my code.

Describe the solution you'd like

There should be an ng generate shared-worker command that works similar to the commands for web and service workers.

Describe alternatives you've considered

This medium article and these two Stack Overflow questions both have different solutions to make this work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: @schematics/angularfeatureIssue that requests a new featurefeature: insufficient votesLabel to add when the not a sufficient number of votes or comments from unique authors

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions