Skip to content

Commit 80355fe

Browse files
committed
docs(en): fetch all
1 parent 0c3193e commit 80355fe

File tree

1 file changed

+11
-12
lines changed

1 file changed

+11
-12
lines changed

src/content/plugins/css-minimizer-webpack-plugin.mdx

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -94,16 +94,15 @@ If you use your own `minify` function please read the `minify` section for handl
9494

9595
## Options
9696

97-
| Name | Type | Default | Description |
98-
| :-----------------------------------------: | :--------------------------------------------: | :----------------------------------: | :---------------------------------------------------------------------------------------------------- |
99-
| **[`test`](#test)** | `String\|RegExp\|Array<String\|RegExp>` | `/\.css(\?.*)?$/i` | Test to match files against. |
100-
| **[`include`](#include)** | `String\|RegExp\|Array<String\|RegExp>` | `undefined` | Files to include. |
101-
| **[`exclude`](#exclude)** | `String\|RegExp\|Array<String\|RegExp>` | `undefined` | Files to exclude. |
102-
| **[`parallel`](#parallel)** | `Boolean\|Number` | `true` | Enable/disable multi-process parallel running. |
103-
| **[`minify`](#minify)** | `Function\|Array<Function>` | `CssMinimizerPlugin.cssnanoMinify` | Allows to override default minify function. |
104-
| **[`minimizerOptions`](#minimizeroptions)** | `Object\|Array<Object>` | `{ preset: 'default' }` | Cssnano optimisations [options](https://cssnano.co/docs/optimisations). |
105-
| **[`processorOptions`](#processoroptions)** | `Object` | `{ to: assetName, from: assetName }` | Allows to specify option [`processoptions`](https://postcss.org/api/#processoptions) for the cssnano. |
106-
| **[`warningsFilter`](#warningsfilter)** | `Function<(warning, file, source) -> Boolean>` | `() => true` | Allow to filter css-minimizer warnings. |
97+
| Name | Type | Default | Description |
98+
| :-----------------------------------------: | :--------------------------------------------: | :--------------------------------: | :---------------------------------------------------------------------- |
99+
| **[`test`](#test)** | `String\|RegExp\|Array<String\|RegExp>` | `/\.css(\?.*)?$/i` | Test to match files against. |
100+
| **[`include`](#include)** | `String\|RegExp\|Array<String\|RegExp>` | `undefined` | Files to include. |
101+
| **[`exclude`](#exclude)** | `String\|RegExp\|Array<String\|RegExp>` | `undefined` | Files to exclude. |
102+
| **[`parallel`](#parallel)** | `Boolean\|Number` | `true` | Enable/disable multi-process parallel running. |
103+
| **[`minify`](#minify)** | `Function\|Array<Function>` | `CssMinimizerPlugin.cssnanoMinify` | Allows to override default minify function. |
104+
| **[`minimizerOptions`](#minimizeroptions)** | `Object\|Array<Object>` | `{ preset: 'default' }` | Cssnano optimisations [options](https://cssnano.co/docs/optimisations). |
105+
| **[`warningsFilter`](#warningsfilter)** | `Function<(warning, file, source) -> Boolean>` | `() => true` | Allow to filter css-minimizer warnings. |
107106

108107
### `test`
109108

@@ -348,10 +347,10 @@ module.exports = {
348347
};
349348
```
350349

351-
#### `processorOptions`
350+
##### `processorOptions` (⚠ only cssnano)
352351

353352
Type: `Object`
354-
Default: `{ to: assetName, from: assetName }`
353+
Default: `{ from: assetName }`
355354

356355
Allows filtering options [`processoptions`](https://postcss.org/api/#processoptions) for the cssnano.
357356
The `parser`,` stringifier` and `syntax` can be either a function or a string indicating the module that will be imported.

0 commit comments

Comments
 (0)