Open Pedroglp opened 4 years ago
The PostCSS processor does not take a "syntax" argument.
https://github.com/postcss/postcss#js-api
Where do you expect that string to get used?
Yes it does, but it is not documented:
https://github.com/postcss/postcss/blob/master/lib/postcss.d.ts
Yes it does, but it is not documented:
https://github.com/postcss/postcss/blob/master/lib/postcss.d.ts
Ah, you're talking about the options
argument. That is documented: https://github.com/postcss/postcss#options
I opened a PR #14 that should probably fix this, but I haven't tested it. Could you install that pass-options-to-processor
branch and test it locally to make sure it works, and fixes your issue?
I think the syntax tag is not currently being passed forward to postcss processor.
ie:
Error:
Options object is not used.
This makes a little bit harder to use syntax plugins like: postcss-less, postcss-sass, postcss-scss.