For AI agents: the complete documentation index is available at /next/zh/llms.txt, the full documentation bundle is available at /next/zh/llms-full.txt, and this page is available as Markdown at /next/zh/api/rspeedy/rspeedy.cssmodulelocalsconvention.md.
Rspeedy logo
Rspeedy
  • 简体中文
  • Home > @lynx-js/rspeedy > CssModuleLocalsConvention

    CssModuleLocalsConvention type

    The style of exported class names.

    Signature:

    export type CssModuleLocalsConvention = 'asIs' | 'camelCase' | 'camelCaseOnly' | 'dashes' | 'dashesOnly';

    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.

    除非另有说明,本项目采用知识共享署名 4.0 国际许可协议进行许可,代码示例采用 Apache License 2.0 许可协议进行许可。