Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
simonxabris committed Jul 10, 2024
1 parent 3019604 commit 3771993
Showing 1 changed file with 16 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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[];
```

0 comments on commit 3771993

Please sign in to comment.