Closed fehmi closed 2 years ago
Same problem here.
Using <style lang="postcss">
it worked for me.
It's specifically the Volar extension, Vetur is more consistent. Notice the difference between main.pcss
and the postcss embedded in the .vue
file.
The author of Volar is aware of this, and referenced a completely different extension, language-postcss
(see "Note" in the marketplace link):
The downside of language-postcss is, it does not support "Syntactical Looseness" as this one does.
I made a feature request about it in VS Code repo.
Description says it is supported but I can't get it to work.