Inline css
This commit is contained in:
parent
2afbf6a136
commit
cd331d8ba7
1 changed files with 3 additions and 3 deletions
6
html.js
6
html.js
|
|
@ -14,9 +14,9 @@ module.exports = React.createClass({
|
||||||
const { body } = this.props
|
const { body } = this.props
|
||||||
const title = DocumentTitle.rewind()
|
const title = DocumentTitle.rewind()
|
||||||
|
|
||||||
let cssLink
|
let css
|
||||||
if (process.env.NODE_ENV === 'production') {
|
if (process.env.NODE_ENV === 'production') {
|
||||||
cssLink = <link rel="stylesheet" href={prefixLink('/styles.css')} />
|
css = <style dangerouslySetInnerHTML={{ __html: require('!raw!./public/styles.css') }} />
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|
@ -30,7 +30,7 @@ module.exports = React.createClass({
|
||||||
/>
|
/>
|
||||||
<title>{title}</title>
|
<title>{title}</title>
|
||||||
<TypographyStyle />
|
<TypographyStyle />
|
||||||
{cssLink}
|
{css}
|
||||||
</head>
|
</head>
|
||||||
<body className="landing-page">
|
<body className="landing-page">
|
||||||
<div id="react-mount" dangerouslySetInnerHTML={{ __html: body }} />
|
<div id="react-mount" dangerouslySetInnerHTML={{ __html: body }} />
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue