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
Support HTTP/2 Server Push #11946
Comments
It may not be easy to create An alternative solution would be:
// An example output of the webpack plugin
{
// Resources which are always required are included in ""
"": {
"runtime.3e827d1a10b9047735bc.js": "script",
"main.e8725b5004466c1664e1.js": "script",
"polyfills.43f2535cedd6fe44b10e.js": "script",
"styles.34c57ab7888ec1573f9c.css": "style"
},
"./lazy/lazy.module": {
"0.8c6a7127511b5f2ffe40.js": "script"
}
}
Demo: https://angular-prpl.appspot.com/ (Chrome users may have to disable Diffs: An apparent drawback of this approach is that you can use HTTP/2 Server Push only in Angular Universal apps. |
I have created a library based on the above idea, though I have not tested it thoroughly. |
I was looking for the possibility of enabling push on an angular 9 / ionic app. |
I would say that this is out of scope for the Angular CLI. Because, for a proper configuration, besides the JavaScript and styles, each project also requires various static resources to properly bootstrap and render the application. If you really want to generate that file, you can use a 3rd party builder or write what that allows you to generates that file with the appropriate content. And server push in Ionic applications isn't supported, they use a local web server. This would be useful if you are serving them on the web, which already requires you to tweak the application depending on the platform (you need to disable |
Just a heads up that we kicked off a community voting process for your feature request. There are 20 days until the voting process ends. Find more details about Angular's feature request process in our documentation. |
Thank you for submitting your feature request! Looks like during the polling process it didn't collect a sufficient number of votes to move to the next stage. We want to keep Angular rich and ergonomic and at the same time be mindful about its scope and learning journey. If you think your request could live outside Angular's scope, we'd encourage you to collaborate with the community on publishing it as an open source package. You can find more details about the feature request process in our documentation. |
Bug Report or Feature Request (mark with an
x
)Desired functionality
polymer-cli and preact-cli generate push-manifest.json which maps incoming request paths to the additional resources that should be pushed with it and is to be interpreted by a tool like prpl-server-node.
It would be great if angular-cli provide the similar functionality.
The text was updated successfully, but these errors were encountered: