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.cssmodules.md.
Rspeedy logo
Rspeedy
  • 简体中文
  • 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.

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