From 377199320d6bf248c7bb04c6ea9bcbf6c8c7ace5 Mon Sep 17 00:00:00 2001 From: Abris Simon Date: Wed, 10 Jul 2024 20:56:49 +0200 Subject: [PATCH] update docs --- .../rspack/swc-css-minimizer-rspack-plugin.mdx | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/website/docs/en/plugins/rspack/swc-css-minimizer-rspack-plugin.mdx b/website/docs/en/plugins/rspack/swc-css-minimizer-rspack-plugin.mdx index bfed96688040..1975c3a01b70 100644 --- a/website/docs/en/plugins/rspack/swc-css-minimizer-rspack-plugin.mdx +++ b/website/docs/en/plugins/rspack/swc-css-minimizer-rspack-plugin.mdx @@ -10,7 +10,22 @@ This plugin can be used to compress CSS assets. See [optimization.minimizer](/co module.exports = { // ... optimization: { - minimizer: [new rspack.SwcCssMinimizerRspackPlugin()], + minimizer: [new rspack.SwcCssMinimizerRspackPlugin(options)], }, }; ``` + +- options + + - **Type:** + + ```ts + type SwcCssMinimizerRspackPluginOptions = { + test?: MinifyConditions; + exclude?: MinifyConditions; + include?: MinifyConditions; + }; + + type MinifyCondition = string | RegExp; + type MinifyConditions = MinifyCondition | MinifyCondition[]; + ```