Skip to content
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

[feature] linkTag injection type #319

Open
benmccann opened this issue Sep 6, 2020 · 2 comments
Open

[feature] linkTag injection type #319

benmccann opened this issue Sep 6, 2020 · 2 comments

Comments

@benmccann
Copy link
Contributor

Webpack's style-loader has several different injectTypes. It would be nice if some of these options were supported here as well. My motivation for asking is that I'm wondering if the number of style tags created by the plugin today would result in optimal performance. It seems like we could recalculate the CSSOM fewer times by injecting only a single style tag per chunk. And injecting the styles via a link tag might result in reduced data transfer for hydrated apps, which would be quite nice

I think that the extract option in this plugin creates only a single CSS file? It would be nice if there were a way to create one css chunk per js chunk in order to support this feature. Then I might be able to provide a function to inject in order to write the link tag myself.

@benmccann
Copy link
Contributor Author

@o-mega
Copy link

o-mega commented Dec 4, 2020

+1 to add this feature

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

No branches or pull requests

2 participants