Skip to content

Check unknown variables on last step #12

Description

@ai

Right now we need to put postcss-mixins or postcss-for before postcss-simple-vars only because this plugin throw a error on unknow variable name.

But we can do smarter:

  • We somebody install postcss-simple-vars, it will add some custom subplugin to end of plugins.
  • Then it replace variables, but didn’t throw on unknown name.
  • Subplugin check unused variables and throw a error if user asked.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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