You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
Webpack's style-loader has several different
injectType
s. 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 ofstyle
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 singlestyle
tag per chunk. And injecting the styles via alink
tag might result in reduced data transfer for hydrated apps, which would be quite niceI 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 toinject
in order to write thelink
tag myself.The text was updated successfully, but these errors were encountered: