Skip to content

Use PostCSS async API #95

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

Closed
ai opened this issue Jul 7, 2015 · 6 comments
Closed

Use PostCSS async API #95

ai opened this issue Jul 7, 2015 · 6 comments

Comments

@ai
Copy link
Contributor

ai commented Jul 7, 2015

css-loader uses sync API for PostCSS.

It is restricted by PostCSS Runner Guielines, because you can’t use sync API with async plugins.

/cc @markdalgleish

@ai
Copy link
Contributor Author

ai commented Jul 7, 2015

For example, cssnano can start to use async plugin.

@isairz
Copy link

isairz commented Jul 7, 2015

I setup my webpack config following example.
https://github.com/emmenko/redux-react-router-async-example

This example occurs same errer. I think this is a good test case for this issue.

@ai
Copy link
Contributor Author

ai commented Jul 7, 2015

Seems like cssnext-loader also uses sync API

@MoOx
Copy link

MoOx commented Jul 7, 2015

FYI, I am responsible of the current shit postcss/postcss#412 (comment)

@sokra sokra added the type: Bug label Jul 7, 2015
@sokra
Copy link
Member

sokra commented Jul 7, 2015

Thanks for the hint. We should use the async API...

@timdorr
Copy link

timdorr commented Sep 8, 2015

cssnano v3.0.0 is out and requires usage of the async API. So, this is now a reality 😉

@timdorr timdorr mentioned this issue Sep 9, 2015
@sokra sokra closed this as completed in 724717e Sep 10, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants