I installed the Autoprefix plugin. I was looking at different settings and I was looking for what I could prescribe in settings.json, but the vendor prefixes never appeared. So what I’m supposed to do is set the Autoprefix to make the prefixes appear automatically. How do I do that?
I wouldn’t suggest adding that to your working CSS file. There is no reason to clutter up your CSS with that.
It should be part of an output. Use something like PostCSS as part of a build step.
Thank you, I will try this one)
But if there is any advices for fixing Autoprefixer it would be really great because I need it for my courses
It is most likely because the default settings are for browsers that do not need most, if any, properties to be prefixed.
As an aside, the last commit to the extension was 4 years ago.
What do you mean by you need it for your courses?
There is really no good reason to put prefixed CSS in the file you are authoring to. It makes it harder to read, maintain, and refactor. It should be added to the output file after a build step.
Also, new CSS features are now behind feature flags and not prefixes. Vendor prefixes were kind of a mistake (bad solution).
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.