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
css - initial chunks are in initial
css - spiltted chunks are in async
context.renderStyles() return all initial chunks mini-css-extract-plugin will auto load async chunks
The text was updated successfully, but these errors were encountered:
What problem does this feature solve?
Now webpack4
mini-css-extract-plugin
supports cssasync-loading
andsplitted chunks
, it also has been supported invue-loader-15
But when we use it in ssr, it will still get all css files at ssr rendering.
Through my investigation, current vue-ssr webpack plugin will not generate corresponding css into
initial
andasync
insidevue-ssr-client-manifest.json
.https://github.com/vuejs/vue/blob/dev/src/server/webpack-plugin/client.js#L19-L26
And also renderer
renderStyles
will renderall
css which includes splitted async css chunks.https://github.com/vuejs/vue/blob/dev/src/server/template-renderer/index.js#L112
What does the proposed API look like?
css - initial chunks are in
initial
css - spiltted chunks are in
async
context.renderStyles() return all
initial
chunksmini-css-extract-plugin
will auto loadasync
chunksThe text was updated successfully, but these errors were encountered: