Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support postcss plugin array syntax #61

Closed
phoenisx opened this issue Aug 23, 2022 · 0 comments · Fixed by #81
Closed

Support postcss plugin array syntax #61

phoenisx opened this issue Aug 23, 2022 · 0 comments · Fixed by #81
Assignees
Labels
enhancement New feature or request good first issue Good for newcomers non-critical Issues that can be deferred
Milestone

Comments

@phoenisx
Copy link
Contributor

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 phoenisx added enhancement New feature or request non-critical Issues that can be deferred labels Aug 23, 2022
@phoenisx phoenisx added this to the 2.3.0 milestone Aug 28, 2022
@phoenisx phoenisx self-assigned this Aug 28, 2022
@phoenisx phoenisx added the good first issue Good for newcomers label Sep 5, 2022
@phoenisx phoenisx modified the milestones: 2.3.0, 2.4.0 Sep 19, 2022
@phoenisx phoenisx closed this as completed Oct 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers non-critical Issues that can be deferred
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant