New camelCaseVariantNames option in DevLink Export
New camelCaseVariantNames option in DevLink Export
DevLink Export supports a new opt-in camelCaseVariantNames setting in webflow.json that converts Style Variant names into camelCase values for the exported variant prop.
What changed
- New
camelCaseVariantNamesoption underdevlink-exportinwebflow.json. It’s off by default, so existing exports are unaffected. - When turned on, a Style Variant named
Papaya With Whipexports aspapayaWithWhipinstead of the raw display name. Names that would collide, or that would otherwise produce an invalid value (a number-only name, or a JavaScript reserved word), fall back to safe, deduplicated values.
To use
Set "camelCaseVariantNames": true under devlink-export in webflow.json, then re-run webflow devlink export.
For more information, see Configuration options.