Object | Function通过 tools.autoprefixer 可以修改 Rsbuild 内置的 autoprefixer 插件的配置。
如果你的项目中自行注册了 autoprefixer 插件,tools.autoprefixer 将不会生效。
当 tools.autoprefixer 的值为 Object 类型时,会与默认配置通过 Object.assign 合并。比如:
当 tools.autoprefixer 为 Function 类型时,默认配置作为第一个参数传入,可以直接修改配置对象,也可以返回一个值作为最终结果。比如: