From 1d2329c1c9bb073d5bd1f4e8963671ee208904bd Mon Sep 17 00:00:00 2001 From: Kyle Mathews Date: Wed, 3 May 2017 12:44:45 -0700 Subject: [PATCH] Fix path to styles.css --- src/html.js | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/src/html.js b/src/html.js index 6562349..9094458 100644 --- a/src/html.js +++ b/src/html.js @@ -1,24 +1,29 @@ -import React from 'react' -import { TypographyStyle } from 'react-typography' -import Helmet from 'react-helmet' +import React from "react" +import { TypographyStyle } from "react-typography" +import Helmet from "react-helmet" -import typography from './utils/typography' +import typography from "./utils/typography" let stylesStr if (process.env.NODE_ENV === `production`) { try { - stylesStr = require(`!raw-loader!./public/styles.css`) + stylesStr = require(`!raw-loader!../public/styles.css`) } catch (e) { console.log(e) } } module.exports = React.createClass({ - render () { + render() { const head = Helmet.rewind() let css if (process.env.NODE_ENV === `production`) { - css =