johanholmerin / style9

CSS-in-JS compiler inspired by Meta's stylex
MIT License
570 stars 27 forks source link

Support for Vue #12

Closed AustinGil closed 4 years ago

AustinGil commented 4 years ago

Hey, this looks great! I wanted to build something like this myself, but this looks like just what I need. However, I use Vue. Any chance you are going to support it? Seems like it should be doable since Vue let's you modify the webpack config, but Im not sure exactly what I need to modify.

johanholmerin commented 4 years ago

I made an example repo for you: style9-vue-example. If you check the latest commit you can see how to add style9.

AustinGil commented 4 years ago

Seems to have to it working. Thanks so much!

AustinGil commented 4 years ago

Hey @johanholmerin I was able to get the dev preview running with this, but it failed when trying to build for production (npm run build)

johanholmerin commented 4 years ago

The example repo works for me. What error message do you get?

AustinGil commented 4 years ago

Oh you're totally right. Must be something on my end then.