-
Notifications
You must be signed in to change notification settings - Fork 10.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Passing options to gatsby-plugin-styled-components #4743
Comments
ugrupp
changed the title
Pass options to gatsby-plugin-styled-components
Passing options to gatsby-plugin-styled-components
Mar 28, 2018
Solved it myself! Turns out the option should be provided to
|
As far as I understood the plugin options are being passed to the babel options. I think that's still a bug if setting plugin options doesn't affect anything. https://www.gatsbyjs.org/packages/gatsby-plugin-styled-components/#options |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
Hey, isn't it possible to pass styled-components options to the gatsby plugin? I tried specifically to set
displayName: true
, but nothing happens.This is from my
gatsby-config.js
Steps to reproduce
Expected result
Element class names should be prefixed with the component names. As described in https://www.styled-components.com/docs/tooling#better-debugging
Actual result
Element class names are missing, as if
displayName
was still set to false.Environment
npm list gatsby
): gatsby@1.9.241gatsby --version
): 1.1.28File contents (if changed):
gatsby-config.js
: see aboveThe text was updated successfully, but these errors were encountered: