Skip to content

Commit 56f66fc

Browse files
authored
docs: update note in README.md (#179)
1 parent 7b4b207 commit 56f66fc

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

README.md

+9-3
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,9 @@ Possible options:
238238
- CssMinimizerPlugin.parcelCssMinify
239239
- `async (data, inputMap, minimizerOptions) => {return {code: "a{color: red}", map: "...", warnings: [], errors: []}}`
240240

241-
> ⚠️ **Always use `require` inside `minify` function when `parallel` option enabled**.
241+
> **Warning**
242+
>
243+
> **Always use `require` inside `minify` function when `parallel` option enabled**.
242244
243245
#### `Function`
244246

@@ -360,7 +362,9 @@ Default: `{ from: assetName }`
360362
Allows filtering options [`processoptions`](https://postcss.org/api/#processoptions) for the cssnano.
361363
The `parser`,` stringifier` and `syntax` can be either a function or a string indicating the module that will be imported.
362364

363-
> ⚠️ **If a function is passed, the `parallel` option must be disabled.**.
365+
> **Warning**
366+
>
367+
> **If a function is passed, the `parallel` option must be disabled.**.
364368
365369
```js
366370
import sugarss from "sugarss";
@@ -407,7 +411,9 @@ Default: `() => true`
407411
Allow filtering css-minimizer warnings (By default [cssnano](https://github.com/cssnano/cssnano)).
408412
Return `true` to keep the warning, a falsy value (`false`/`null`/`undefined`) otherwise.
409413

410-
> ⚠️ The `source` argument will contain `undefined` if you don't use source maps.
414+
> **Warning**
415+
>
416+
> The `source` argument will contain `undefined` if you don't use source maps.
411417
412418
**webpack.config.js**
413419

0 commit comments

Comments
 (0)