Skip to content

Commit

Permalink
[www] Fix Typography.js plugin options, tidy (gatsbyjs#1748)
Browse files Browse the repository at this point in the history
  • Loading branch information
fk authored and KyleAMathews committed Aug 9, 2017
1 parent 4e006d9 commit bcb0f32
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 10 deletions.
4 changes: 3 additions & 1 deletion www/gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ module.exports = {
},
{
resolve: `gatsby-plugin-typography`,
pathToConfigModule: `src/utils/typography`,
options: {
pathToConfigModule: `src/utils/typography`,
},
},
{
resolve: `gatsby-plugin-canonical-urls`,
Expand Down
4 changes: 0 additions & 4 deletions www/src/html.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
import React from "react"
import { TypographyStyle } from "react-typography"

import typography from "./utils/typography"

let stylesStr
if (process.env.NODE_ENV === `production`) {
Expand Down Expand Up @@ -75,7 +72,6 @@ export default class HTML extends React.Component {
href={`/safari-pinned-tab.svg`}
color="#5bbad5"
/>
<TypographyStyle key={`typography`} typography={typography} />
{css}
</head>
<body>
Expand Down
5 changes: 0 additions & 5 deletions www/src/utils/typography.js
Original file line number Diff line number Diff line change
Expand Up @@ -204,9 +204,4 @@ const options = {

const typography = new Typography(options)

// Hot reload typography in development.
if (process.env.NODE_ENV !== `production`) {
typography.injectStyles()
}

export default typography

0 comments on commit bcb0f32

Please sign in to comment.