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

Provide webpack example #50

Open
eliihen opened this issue Apr 30, 2019 · 1 comment
Open

Provide webpack example #50

eliihen opened this issue Apr 30, 2019 · 1 comment

Comments

@eliihen
Copy link

eliihen commented Apr 30, 2019

Hello,

First of all, thank you for maintaining this library, it seems like a very interesting concept.

I started looking into solutions like this after I discovered stylis, which is used by many CSS-in-JS libraries like styled-components and emotion, does not support CSS Grid. I discovered postcss-jsx and thought it may have a nice synergy with Autoprefixer's grid support, along with the plethora of other plugins like postcss-preset-env and stylelint.

Having spent two days trying to get it to work with Webpack and postcss-loader I am at the end of my ropes, unfortunately. There is very little documentation on the matter, so my first question is does postcss-jsx work with Webpack (postcss-loader) and babel?

Is there any chance for a more thorough description of how to get this project working with webpack and for example autoprefixer? Maybe an example project? Or at least a hint on where I may be in the wrong?

If I manage to get this working I will write a long blog post detailing how to set it up with webpack and parcel (not sure if parcel will work though). That post may make it easier for the next person coming along to use this project.

If you're interested in my progress, it is over at the postcss-and-styled-components repo. Currently no transformations are applied at all.

Thanks for your time, you rock

@zslabs
Copy link

zslabs commented May 26, 2019

@gucong3000 This would be a pretty interesting item to cover. My use-case (along with Autoprefixer), was https://github.com/larsenwork/postcss-easing-gradients

Questions would be around how this impacts SSR, bundle-size, etc --- or if this is the 🔥 I'm hoping it is. Thanks!

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