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.

Except as otherwise noted, this work is licensed under a Creative Commons Attribution 4.0 International License, and code samples are licensed under the Apache License 2.0.