Skip to content

Commit e9de83a

Browse files
authored
Merge pull request #28 from tusbar/fix-csshash-component
Fix CssHash component
2 parents 524654a + 377273a commit e9de83a

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/createApiWithCss.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,9 @@ export default (
116116
CssHash: () => (
117117
<script
118118
type='text/javascript'
119-
dangerouslySetInnerHTML={{ __html: JSON.stringify(cssHashRaw) }}
119+
dangerouslySetInnerHTML={{
120+
__html: `window.__CSS_CHUNKS__ = ${JSON.stringify(cssHashRaw)}`
121+
}}
120122
/>
121123
),
122124
cssHash: {

0 commit comments

Comments
 (0)