-
-
Notifications
You must be signed in to change notification settings - Fork 608
Use PostCSS #54
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
Comments
@ai It worked really well for me given I had zero experience beforehand. One question I have though—does PostCSS parse selectors into an AST? I'm currently transforming selectors using regular expressions which I know isn't going to work in the long run, and it'd be much better to operate on an AST instead of a string. |
@markdalgleish there is no selector parser right now and you can use css-selector-parser. @ben-eb is developing new parser, but as I know it will not be ready in this month. |
PostCSS is nice. We previously used a full parser for the
I'm fine with changing the css minimizer to PostCSS if it's better. |
@sokra but it is not safe ;). a {
content: "do not use url(path)";
} |
@sokra and more details for you reasonable counterarguments:
|
If you want to do a PR, feel free to do so, but I still think it not worth the work. The current parser is functional and works fine. postcss-url and postcss-import won't help here, because they do it different than the css-loader. |
Not really, there is some case where latest css syntax is causing issue (if you minify) which break the process. |
The minimizer and the parser are separate things in the css-loader. I'm fine with replacing the minimizer with PostCSS (that not much work). |
css-loader shouldn't do any post processing... |
fastparse
is awesome tool. But if you will move to PostCSS you will have these benefits:url()
and support@import
with full CSS parsing. It is much safer. We are already have awesome plugins forurl()
and@import
.@markdalgleish what do you think as PostCSS plugin developer?
The text was updated successfully, but these errors were encountered: