tools.cssLoader

  • Type: Object | Function
  • Default:
const defaultOptions = {
  modules: rsbuildConfig.output.cssModules,
  sourceMap: rsbuildConfig.output.sourceMap.css,
};

The config of css-loader can be modified through tools.cssLoader.

INFO

The usage of this configuration item is exactly the same as that of Rsbuild. For detailed information, please refer to Rsbuild - tools.cssLoader.