faceyspacey / faceyspacey/extract-css-chunks-webpack-plugin

SSR usage and implementation details

Open
#296 0 comments 2 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
693
Forks
83
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the README's SSR Friendly claim and inspect src/index.js around line 354, especially the document.createElement reference. Trace which code path runs during server-side rendering and identify any required project configuration; update the SSR documentation with the confirmed behavior and setup details.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, webpack
Domain
build-system
Issue type
Documentation
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.