Skip to content

Commit 17cb80e

Browse files
committed
fix($readme): small changes
1 parent a0fe7bd commit 17cb80e

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

README.md

+6-4
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,9 @@ Here's the sort of CSS you can expect to serve:
101101
</body>
102102
```
103103

104-
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:
104+
[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.
105+
106+
Here's how you do it:
105107

106108
*src/components/App.js:*
107109
```js
@@ -127,9 +129,9 @@ res.send(`
127129
${styles}
128130
</head>
129131
<body>
130-
<div id="root">${app}</div>
131-
${cssHash}
132-
${js}
132+
<div id="root">${app}</div>
133+
${cssHash}
134+
${js}
133135
</body>
134136
</html>
135137
`)

0 commit comments

Comments
 (0)