Skip to content

Check unknown variables on last step #12

@ai

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.

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