For AI agents: the complete documentation index is available at /zh/llms.txt, the full documentation bundle is available at /zh/llms-full.txt, and this page is available as Markdown at /zh/configure/app/tools/css-loader.md.
  • 简体中文
  • tools.cssLoader

    • 类型: Object | Function
    • 默认值:
    const defaultOptions = {
      modules: rsbuildConfig.output.cssModules,
      sourceMap: rsbuildConfig.output.sourceMap.css,
    };

    修改 css-loader 的配置项。

    Info

    该配置项的使用方式与 Rsbuild 完全一致。详细信息请参考 Rsbuild - tools.cssLoader。