Object | Function
Use tools.autoprefixer
to modify the configuration of the autoprefixer plugin that is built into Rsbuild.
If you have registered the autoprefixer plugin in the project yourself, tools.autoprefixer
will not work.
When tools.autoprefixer
is configured as Object
type, it is merged with the default config through Object.assign. For example:
When tools.autoprefixer
is a Function, the default config is passed as the first parameter and can be directly modified or returned as the final result. For example: