Skip to content

Commit

Permalink
fix($readme): small changes
Browse files Browse the repository at this point in the history
  • Loading branch information
faceyspacey committed Jul 27, 2017
1 parent a0fe7bd commit 17cb80e
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,9 @@ Here's the sort of CSS you can expect to serve:
</body>
```

If you use [webpack-flush-chunks](https://github.com/faceyspacey/webpack-flush-chunks), it will scoop up the exact stylesheets to embed in your response string for you. This is the recommended approach. Here's how you do it:
[webpack-flush-chunks](https://github.com/faceyspacey/webpack-flush-chunks) will scoop up the exact stylesheets to embed in your response. It essentially automates producing the above.

Here's how you do it:

*src/components/App.js:*
```js
Expand All @@ -127,9 +129,9 @@ res.send(`
${styles}
</head>
<body>
<div id="root">${app}</div>
${cssHash}
${js}
<div id="root">${app}</div>
${cssHash}
${js}
</body>
</html>
`)
Expand Down

0 comments on commit 17cb80e

Please sign in to comment.