Home > @lynx-js/rspeedy > CssModules
The CssModules option is used for the customization of CSS Modules configurations.
Signature:
The CSS module is enabled for *.module.css, *.module.scss and *.module.less. Use CssModules.auto to customize the filtering behavior.
| Property | Modifiers | Type | Description |
|---|---|---|---|
| auto? | boolean | RegExp | ((filename: string) => boolean) | undefined | (Optional) The auto option allows CSS modules to be automatically enabled based on their filenames. | |
| exportGlobals? | boolean | undefined | (Optional) Allows exporting names from global class names, so you can use them via import. | |
| exportLocalsConvention? | CssModuleLocalsConvention | undefined | (Optional) The style of exported class names. | |
| localIdentName? | string | undefined | (Optional) Sets the format of the className generated by CSS Modules after compilation. |