maoberlehner / vue-lazy-hydration

Lazy Hydration of Server-Side Rendered Vue.js Components
MIT License
1.18k stars 52 forks source link

Missing extracted css for lazily imported/hydrated components #141

Open SecretPocketCat opened 1 year ago

SecretPocketCat commented 1 year ago

My setup currently uses MiniCssExtractPlugin which doesn't emit during SSR

loader: MiniCssExtractPlugin.loader,
    options: {
        emit: !ssr,
    },

This works fine except for the components that are using the lazy hydration import wrappers which load their styles only once hydration is triggered, ie. once they are hydrated. I'm doing something wrong or is this to be expected and is there a way around this while still using the import wrappers?