vscode-cssvar icon indicating copy to clipboard operation
vscode-cssvar copied to clipboard

Support postcss plugin array syntax

Open phoenisx opened this issue 3 years ago • 0 comments

Default way of defining plugins using postcss.config file:

{
  "plugins: {
    "autoprefixer": {} // Pass Options as object property value.
  }
}

Below is a syntax that Eslint accepts in its rules property, where options are passed as second value in an array:

{
  "plugins: [
    ["tailwindcss", {}], // Array to pass options
    "autoprefixer" // Plain string works as is
  ]
}

This syntax is to support backwards compatibility. I can remove this syntax once the extension version reaches to v3.

phoenisx avatar Aug 23 '22 17:08 phoenisx