> For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt.

# output.emitCss

- **Type:** `boolean`
- **Default:** `true` when [output.target](/config/output/target.md) is `web`, otherwise `false`

Controls whether CSS is emitted to output bundles.

If `false`, the CSS will not be extracted to separate files or injected into the JavaScript bundles via [output.injectStyles](/config/output/inject-styles.md).

:::tip

When `output.emitCss` is `false`, the class name information of CSS Modules will still be injected into the JS bundles, which helps to ensure the correctness of CSS Modules class names in SSR.

:::

## Example

When building Node.js bundles, set `output.emitCss` to `true` to output CSS files:

```ts title="rsbuild.config.ts"
export default {
  output: {
    target: 'node',
    emitCss: true,
  },
};
```
