question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add support for GatsbyJS

See original GitHub issue

As GatsbyJS doesn’t give you direct access to a .babelrc file, we’d need a gatsbyjs plugin to support using @compiled/babel-plugin-css-in-js.

Here’s an example of how the official Emotion plugin for Gatsby works: https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-emotion

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:12

github_iconTop GitHub Comments

1reaction
itsdougescommented, Dec 22, 2020

if anyone is interested we’d love a contribution for a package in this repo @compiled/gatsby-plugin would be dope! (would make it easy to keep it updated with releases of compiled).

going to close this off for now as it’s not a priority for us.

1reaction
itsdougescommented, Jul 17, 2020

Yes to plugin, unsure about template for now. That’s like a starting template right? Maybe do two PRs one for each and we can talk through the template one.

On Sat, 18 Jul 2020, 12:10 am Hank Andre, notifications@github.com wrote:

I think I have enough to go on, yeah. I got the plugin working for my project, locally, which is pretty exciting. Once it’s published I can create a template easily.

Would you all prefer it be added to the monorepo here? I’d assume so for the plugin. I’d imagine the template would just be a bit of an example, but I’d be willing to add both. You all let me know.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/atlassian-labs/compiled-css-in-js/issues/183#issuecomment-660128264, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABT4PHPPFGDQ6X6FLC2YOMDR4BLWPANCNFSM4MVH5R4A .

Read more comments on GitHub >

github_iconTop Results From Across the Web

Browser Support | Gatsby
Gatsby supports the same browsers as the current stable version of React.js which is currently Edge, Firefox, Chrome, Safari, as well as…
Read more >
Premium Support and Services - Gatsby
Professional support, performance audits, and services for Gatsby websites and apps. Gatsby Cloud Knowledge Base. Explore the functionality available in Gatsby ...
Read more >
Adding Gatsby Image support to your plugin
You can give your users the best experience by adding a gatsbyImageData resolver to your image nodes. This allows you to generate low-resolution...
Read more >
Adding Offline Support with a Service Worker - Gatsby
That's all you need to add offline support to your Gatsby site. Note: Service worker registers only in production builds ( gatsby build...
Read more >
Gatsby Cloud
How can we help you?
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found