Home > @lynx-js/rspeedy > CssModules

CssModules interface

The CssModules option is used for the customization of CSS Modules configurations.

Signature:

export interface CssModules

Remarks

The CSS module is enabled for *.module.css, *.module.scss and *.module.less. Use CssModules.auto to customize the filtering behavior.

Properties

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.
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.