Closed syahid-dev closed 2 years ago
Hi! I'm using Autoprefixer in Visual Studio Code, and when im run it, its not change css variables to value. Example, my CSS is :
:root { --bg-blue: lightblue; } #mydiv { background-color: var(--bg-blue); }
Autoprefixer not change anything, im want my CSS convert to :
#mydiv { background-color: lightblue; }
Maybe its wrong in extension.... or in build version its same?
Autoprefixer is dealing with vendor prefixes, not Custom Properties.
For Custom Properties you need to use PostCSS with postcss-preset-env.
postcss-preset-env
For reference
https://preset-env.cssdb.org/features/#custom-properties
Hi! I'm using Autoprefixer in Visual Studio Code, and when im run it, its not change css variables to value. Example, my CSS is :
Autoprefixer not change anything, im want my CSS convert to :
Maybe its wrong in extension.... or in build version its same?