For AI agents: the complete documentation index is available at /next/llms.txt, the full documentation bundle is available at /next/llms-full.txt, and this page is available as Markdown at /next/api/rspeedy/rspeedy.cssmodules.md.
Rspeedy logo
Rspeedy
  • English
  • 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.