react-webpack-server-side-example icon indicating copy to clipboard operation
react-webpack-server-side-example copied to clipboard

Not an issue but confused.

Open MarcZenn opened this issue 8 years ago • 0 comments

Hi,

I'm very new to SSR with webpack and I'm having issues getting webpack to work when rendering server-side (currently seeing "EventSource's response has a MIME type ("text/html") that is not "text/event-stream". Aborting the connection" in the console.). I'm looking at your webpack.config and I see that you're exporting two separate configs, one for the client and for SSR.

When running this project how do you dictate which one to use when? For example if you're in production how do you use the server-side-rendering config and not the browser config from webpack.config

Apologies if I'm just not grasping something here I should know beforehand.

MarcZenn avatar Jan 17 '17 19:01 MarcZenn