-
-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Webworkers? #1655
Comments
I've added another entry point for my worker bundle. In Would duplicating the webpack manifest in the worker bundle fix this? Any ideas on how to do that? |
I got it to work using
I didn't have to modify any of the config files, and the build automagically creates built JS file replacing However, if you want to split out common chunks between the worker and your main scripts (e.g. loading a vendor bundle from within the worker with |
Thanks @tobek. I'll try out this approach this week and report back. |
While this will work if you are using webworkers directly as in you example, it won't work with Angular's webworker strategy. Looking into https://github.com/shlomiassaf/angular-worker-loader for this, but one of the listed TODOs is "Workflow with bundles, especially hashed", so this might be a non-starter for me. |
This looks like a good, clean approach. https://stackoverflow.com/questions/43276044/angular-cli-generated-app-with-web-workers |
@bmayen you solved this problem? |
Basically used the approach described in the stackoverflow link I posted. Our company is currently working on a contribution to Angular-CLI to support webworkers out of the box there, so that's where our focus is now. General principles should work with this starter though as well. |
@bmayen How your team go with this? Did you manage to successfully submit the contribution to the Angular-Cli project? |
This approach is not the one preferred by the Angular-CLI team, so we never submitted a PR for it. There's an open issue for it but it is only prioritized as a "nice-to-have". I've requested higher priority but it hasn't gotten traction yet. angular/angular-cli#2305 |
@bmayen Good day! Did you manage to introduce web workers into this repo??? Can you get me example or solution of it? |
I'd also like to see this happen. |
@KhanaevRoman, I followed the example in the link above |
@bmayen shlomiassaf solution? But it is not this repo based project... |
|
@bmayen Can I ask how did you get rid of 'window is undefined' error message with the solution in the stackoverflow link? |
Would need more information. That error could be caused by any number of things. What does the error stack look like? |
Has anybody had any success getting webworkers to work in this repo?
The text was updated successfully, but these errors were encountered: