For AI agents: the complete documentation index is available at /zh/llms.txt, the full documentation bundle is available at /zh/llms-full.txt, and this page is available as Markdown at /zh/api/rspeedy.cssmodules.exportlocalsconvention.md.
这是开发预览网站。请访问正式文档 lynxjs.org

Home > @lynx-js/rspeedy > CssModules > exportLocalsConvention

CssModules.exportLocalsConvention property

The style of exported class names.

Signature:

exportLocalsConvention?: CssModuleLocalsConvention | undefined;

Default Value

'camelCase'

Remarks

Given the various exportLocalsConvention values, the behavior is described as follows:

  • 'asIs': Class names will be exported as is.

  • 'camelCase': Class names will be camelized, the original class name will not to be removed from the locals

  • 'camelCaseOnly': Class names will be camelized, the original class name will be removed from the locals

  • 'dashes': Only dashes in class names will be camelized

  • 'dashesOnly': Dashes in class names will be camelized, the original class name will be removed from the locals

See css-loader#exportLocalsConvention for details.