Support additionalData
for the lightningcss css transformer #17724
Open
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
- Follow our Code of Conduct
- Read the Contributing Guidelines.
- Read the docs.
- Check that there isn't already an issue that request the same feature to avoid creating a duplicate.