Skip to content

Support additionalData for the lightningcss css transformer #17724

Open
@soluml

Description

Description

The additionalData option for other preprocessors is extremely valuable in sharing variables and other items to other files without explicit inclusion. While this largely isn't necessary for most things with Lightning CSS, it's still really useful for sharing @custom-media directives throughout your CSS.

Suggested solution

Offer the ability to prepend a string to all CSS files/segments when using the Lightning CSS transformer.

Alternative

No response

Additional context

No response

Validations

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