---
title: cssLoader
---

# tools.cssLoader

- **Type:** `Object | Function`
- **Default:**

```js
const defaultOptions = {
  modules: rsbuildConfig.output.cssModules,
  sourceMap: rsbuildConfig.output.sourceMap.css,
};
```

The config of [css-loader](https://github.com/webpack-contrib/css-loader) can be modified through `tools.cssLoader`.

import RsbuildConig from '@site-docs-en/components/rsbuild-config-tooltip';

<RsbuildConig />
