-
Notifications
You must be signed in to change notification settings - Fork 93
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
automatically switch syntax by file extensions #207
base: master
Are you sure you want to change the base?
Conversation
gucong3000
commented
Apr 14, 2018
•
edited
Loading
edited
- Add support for automatically switch the required syntax by file extensions
- Add support for handling different syntax files in one command
I'm not sure that I like the idea of this. You always have to install the correct parser/syntax for the file you're dealing with, so I don't see the point of not requiring config to use them. That just makes the dependency implicit vs. explicit. |
I want try to if it's possible to use this project instead of stylelint's CLI. postcss src/**/* -u stylelint Most parser/syntax are installed in stylelint. |
How about install built-in some of the most commonly used parser/syntax? |
3a67652
to
199f6d7
Compare
|
I've chosen three smallest packages for you. |
@ai I think we should do something for this. |
I agree with @gucong3000. I can’t find a popular case when you don’t need a “There is no dumb users, there is only bad UX” :D
Nope. it is PostCSS Core, which is JS API. Look for Autoprefixer. It has a lot of “convention over configuration”.
I think the biggest our mistake in PostCSS was not to create some PostCSS Pack with best practice and plugins set. Most of the users will have some out-of-box solution. The other will use Core with own plugins. Unfortunately, users are really bad with selecting plugins. Most just don’t know about other solutions. |
There is some information for postcss syntaxes.
|
9ca5c96
to
741c642
Compare
741c642
to
88ff080
Compare