Skip to content

Check loaded postcss version #361

@ai

Description

@ai

There are popular UX issue:

  1. User install postcss-cli, but forgot to install postcss
  2. postcss-cli takes old postcss 6 or postcss 7 from the deep dependencies
  3. User have true is not a PostCSS plugin without a good explanation

@RyanZim we can solve this problem by checking PostCSS version in postcss-cli:

if (parseInt(postcss().version) < 8) {
  throw new Error('Please install postcss or update it')
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions