Skip to content

Commit

Permalink
Merge pull request #6068 from storybooks/fix/fouc-docs
Browse files Browse the repository at this point in the history
ADD gatsby-plugin-styled-components to FIX the FOUC in the new header
  • Loading branch information
shilman authored Mar 13, 2019
2 parents d6e4663 + c017943 commit 3375ce0
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
6 changes: 6 additions & 0 deletions docs/gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,12 @@ module.exports = {
path: `${__dirname}/src/pages/`,
},
},
{
resolve: `gatsby-plugin-styled-components`,
options: {
repoUrl: 'https://github.com/storybooks/storybook',
},
},
{
resolve: 'gatsby-transformer-remark',
options: {
Expand Down
2 changes: 2 additions & 0 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,13 @@
"@storybook/addons": "5.0.0-rc.1",
"@storybook/react": "5.0.0-rc.1",
"babel-loader": "^6.4.1",
"babel-plugin-styled-components": "^1.10.0",
"bootstrap": "^4.3.1",
"common-tags": "^1.8.0",
"gatsby": "^1.9.279",
"gatsby-link": "^1.6.45",
"gatsby-plugin-sharp": "^1.6.48",
"gatsby-plugin-styled-components": "^2.0.0",
"gatsby-remark-autolink-headers": "^1.4.19",
"gatsby-remark-copy-linked-files": "^1.5.37",
"gatsby-remark-images": "^1.5.67",
Expand Down
9 changes: 8 additions & 1 deletion docs/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2612,7 +2612,7 @@ babel-plugin-react-docgen@^2.0.2:
react-docgen "^3.0.0"
recast "^0.14.7"

"babel-plugin-styled-components@>= 1":
"babel-plugin-styled-components@>= 1", babel-plugin-styled-components@^1.10.0:
version "1.10.0"
resolved "https://registry.yarnpkg.com/babel-plugin-styled-components/-/babel-plugin-styled-components-1.10.0.tgz#ff1f42ad2cc78c21f26b62266b8f564dbc862939"
integrity sha512-sQVKG8irFXx14ZfaK1bBePirfkacl3j8nZwSZK+ZjsbnadRHKQTbhXbe/RB1vT6Vgkz45E+V95LBq4KqdhZUNw==
Expand Down Expand Up @@ -6965,6 +6965,13 @@ gatsby-plugin-sharp@^1.6.48:
sharp "^0.20.0"
svgo "^0.7.2"

gatsby-plugin-styled-components@^2.0.0:
version "2.0.11"
resolved "https://registry.yarnpkg.com/gatsby-plugin-styled-components/-/gatsby-plugin-styled-components-2.0.11.tgz#c3d3438c7970bbcc116e821fb966687098bdaf57"
integrity sha1-w9NDjHlwu8wRboIfuWZocJi9r1c=
dependencies:
babel-runtime "^6.26.0"

gatsby-react-router-scroll@^1.0.18:
version "1.0.18"
resolved "https://registry.yarnpkg.com/gatsby-react-router-scroll/-/gatsby-react-router-scroll-1.0.18.tgz#616ffb801dbdbe4598611e2ff3861b91ac3eecbf"
Expand Down

0 comments on commit 3375ce0

Please sign in to comment.