react-webpack-server-side-example
react-webpack-server-side-example copied to clipboard
Example of an react application with webpack including server-side rendering.
link to wiki page for FOUC term
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...
I noticed that https://github.com/webpack/react-webpack-server-side-example/blob/master/server/style-collector.js#L4 was never called during an execution of its collect method. I think it may have to do with the fact that webpack caches the style-collector.js on...
If you change a template, you have to kill and restart the `npm start` script in order to see the changes.
https://github.com/webpack/react-webpack-server-side-example/blob/master/webpack.config.js#L45 Hi, this settings seems to be wrong, because scoped module (e.g. `@foo/bar` ) is not considered. `externals: /^[^\.\/].*$/` is true? https://nodejs.org/api/modules.html#modules_all_together
I use react 15.2.1 now, so there are some changes with React syntax (React.renderComponentToString --> ReactDOMServer.renderToString, React.renderComponent --> ReactDOM.render). But after I change it, there are errors that stated that...
I'm interested in combining this example with webpack-dev-middleware or webpack-dev-server (if possible). My experience is it would take less time to bundle the final files using webpack-dev-middleware thainstead of webpack...
There's lots of mention about how this code should not be used directly. What is wrong with the code and pieces are missing from it? I am new to webpack...
Is there a configuration option I'm missing? Here's my output: ``` Child server: Hash: 6d88699fa57e97fc02a2 Version: webpack 1.4.15 Time: 21ms [0] ./lib/server.js -1 [built] [failed] ERROR in ./lib/server.js Module parse...