Skip to content
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

Using styled-components? #58

Open
varya opened this issue Apr 4, 2018 · 1 comment
Open

Using styled-components? #58

varya opened this issue Apr 4, 2018 · 1 comment

Comments

@varya
Copy link

varya commented Apr 4, 2018

I have my website on metalsmith using metalsmith-react-templates as templating solution + webpack static build for CSS and JS to link.
Now I am trying to use styled-components (https://www.styled-components.com/) together with metalsmith-react-templates and I am lost :-)
To my understanding, the main obstacle is that styled-components assume that all the styles are inlined into <styles> tag, whereas metalsmith-react-templates approach is that styles are generated separately and linked traditionally via template.
Can you please suggest how to handle this or did you probably see examples?
Thanks!

@yeojz
Copy link
Owner

yeojz commented Apr 7, 2018

Hi @varya

Underlying this, we're still depending on babel for transpilation. Would it do to use the babel-plugin of styled components? I personally haven't tried styled-components with this yet.

If not, maybe can elaborate on the final outcome on what you're trying to achieve and I'll look into it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants