Skip to content

Allow nodes to be constructed #96

@nex3

Description

@nex3

Feature Use Case

PostCSS provides top-level functions (postcss.rule() et al) for creating new nodes from scratch. This is particularly useful in conjunction with Node.replaceWith() when a processor makes edits to a stylesheet. It would be similarly useful to be able to construct new value-level nodes.

Feature Proposal

To match the PostCSS API, export functions that construct all the value datatypes, like word() and string() and so on.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions