Skip to content
This repository was archived by the owner on Apr 8, 2020. It is now read-only.

including node_modules causes long publish, deploy times and Azure issues with Angular template + server side rendering #1584

Closed
craigsmitham opened this issue Mar 21, 2018 · 1 comment

Comments

@craigsmitham
Copy link

I'm using the 2.0.0 of the project templates to create a new Angular app and have configured it to use server side rendering as described here.

The package/publish takes a very long time to copy the node_modules directory to the publish directory, and the upload/deployment process takes even longer. I'm not sure it even works with Azure App Services. I zipped the outputs and used Kudu zip deploy. It uploaded OK, but the Kudu deployment process is stuck at 50% after 10 minutes.

I was curious about the rationale for including the entire node_modules directory instead of bundling with Webpack. I saw @SteveSandersonMS 's comment on issue #429, but that looks out of date. Any advice on what to do about these issues, or will server-side bundling be supported?

@SteveSandersonMS
Copy link
Member

@craigsmitham We're awaiting a fix for angular/angular-cli#8616. I don't know of any ETA for that but you could contact the Angular CLI folks and ask for it to be prioritised.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants