Object | Function
undefined
The config of css-loader can be modified through tools.cssLoader
. The default config is as follows:
When using Rspack as the bundler, this configuration is only supported when set injectStyles is true.
To modify CSS Modules configuration, it is recommended to use the output.cssModules configuration.
When this value is an Object, it is merged with the default config via deep merge. 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: