Open ai opened 5 years ago
I'd be happy to help contribute to an article. We recently switched to astroturf from a different zero-runtime css-in-js solution called [babel-plugin-css-in-js] (https://github.com/martinandert/babel-plugin-css-in-js). It started with us being unhappy with Aphrodite based on performance and syntax. The babel plugin looked like a good option since (at the time) it was maintained and had a similar but better syntax vs. Aphrodite, but it was still a compromise (inflexible classname options, incomplete css support). We started running up against the limits of the plugin a few months ago and reevaluated runtime solutions (namely emotion
), but found them unperformant, especially with our test suite (trying out emotion slowed out test suite down locally by 8x). I was super happy to find astroturf
because since it was based on webpack, we were able to set it up into our "holy grail": inline SCSS in our JS. I wrote a codemod to switch us over from the old solution to the new, and it's been pretty good since. We've had some problems with slow-ish webpack rebuilds, but it's unclear if it's a result of the astroturf switch or not.
@ethanensler go for it 👍 happy to read and offer input if needed :)
@ethanensler awesome 😸 we can help on even early stages. You can prepare article plan as a first step to review.
Hey @ai (and other maintainers), wanted to let you know that I haven't forgotten about this! I've started writing the article and an incomplete draft lives in GDrive here. (I was writing it in markdown-ish since I don't know where we'll end up publishing it).
New step in tool promotion is to write an article.
CSS Tricks is a good platform for the first article.
How I see the content:
Unfortunately, I can’t help with writing because I am not native.