Object | Function
{}
The config of style-loader can be set through tools.styleLoader
.
It is worth noting that Rsbuild does not enable style-loader
by default. You can use output.injectStyles config to enable it.
When this value is an Object, it is merged with the default config via Object.assign. For example:
When the value is a Function, the default config is passed in as the first parameter. You can modify the config object directly, or return an object as the final config. For example: