extract-css-chunks-webpack-plugin icon indicating copy to clipboard operation
extract-css-chunks-webpack-plugin copied to clipboard

SSR usage and implementation details

Open benmccann opened this issue 5 years ago • 0 comments

The readme says the plugin is SSR Friendly, but I was wondering if you could give some more details about that.

Is there anything I would need to do to configure a project to use this plugin with SSR?

I would expect that things like document.createElement would fail on the server since the DOM isn't available to provide document:

https://github.com/faceyspacey/extract-css-chunks-webpack-plugin/blob/c6402525a08b8b34cf2de8893ed2789808726d59/src/index.js#L354

Is there another code path that gets run on the server?

I have tried looking through past issues for more details, but haven't been able to find out more yet.

benmccann avatar Sep 08 '20 18:09 benmccann