interface Plugin {
    AtRule?: {
        [name: string]: AtRuleProcessor;
    } | AtRuleProcessor;
    AtRuleExit?: AtRuleProcessor | {
        [name: string]: AtRuleProcessor;
    };
    Comment?: CommentProcessor;
    CommentExit?: CommentProcessor;
    Declaration?: {
        [prop: string]: DeclarationProcessor;
    } | DeclarationProcessor;
    DeclarationExit?: DeclarationProcessor | {
        [prop: string]: DeclarationProcessor;
    };
    Document?: DocumentProcessor;
    DocumentExit?: DocumentProcessor;
    Once?: RootProcessor;
    OnceExit?: RootProcessor;
    Root?: RootProcessor;
    RootExit?: RootProcessor;
    Rule?: RuleProcessor;
    RuleExit?: RuleProcessor;
    postcssPlugin: string;
    prepare?: ((result) => Processors);
}

Hierarchy (view full)

Properties

AtRule?: {
    [name: string]: AtRuleProcessor;
} | AtRuleProcessor

Will be called on allAtRule nodes.

Will be called again on node or children changes.

Type declaration

AtRuleExit?: AtRuleProcessor | {
    [name: string]: AtRuleProcessor;
}

Will be called on all AtRule nodes, when all children will be processed.

Will be called again on node or children changes.

Type declaration

Will be called on all Comment nodes.

Will be called again on node or children changes.

CommentExit?: CommentProcessor

Will be called on all Comment nodes after listeners for Comment event.

Will be called again on node or children changes.

Declaration?: {
    [prop: string]: DeclarationProcessor;
} | DeclarationProcessor

Will be called on all Declaration nodes after listeners for Declaration event.

Will be called again on node or children changes.

Type declaration

DeclarationExit?: DeclarationProcessor | {
    [prop: string]: DeclarationProcessor;
}

Will be called on all Declaration nodes.

Will be called again on node or children changes.

Type declaration

Will be called on Document node.

Will be called again on children changes.

DocumentExit?: DocumentProcessor

Will be called on Document node, when all children will be processed.

Will be called again on children changes.

Will be called on Root node once.

OnceExit?: RootProcessor

Will be called on Root node once, when all children will be processed.

Will be called on Root node.

Will be called again on children changes.

RootExit?: RootProcessor

Will be called on Root node, when all children will be processed.

Will be called again on children changes.

Will be called on all Rule nodes.

Will be called again on node or children changes.

RuleExit?: RuleProcessor

Will be called on all Rule nodes, when all children will be processed.

Will be called again on node or children changes.

postcssPlugin: string
prepare?: ((result) => Processors)

Type declaration