Would this then disable postcss-cli from working unless the proper postcss version is installed?
Also, where would be a good place for this check to be.
In the first resolve where it checks for watch mode support? After that but before the file check?
Personal preference would be to check and exit as early as possible.
Hm. We can do it in the beggining of CLI after --version and --help protcessing.
That would be right before the Promise begins then? Since I'm guessing the processing your talking about is the argv section above it. That could be a good place, then it would fail after the plugins check which would be good.
Then the error experience would be something like: "Cannot find module -> Please install PostCSS 8 -> Cannot write in watch mode ...". Which is a nice DX IMHO, it tells a nice story.
There are popular UX issue:
postcss-cli, but forgot to install
postcss 7from the deep dependencies
true is not a PostCSS pluginwithout a good explanation
@RyanZim we can solve this problem by checking PostCSS version in
The text was updated successfully, but these errors were encountered: