Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
docs: fix
  • Loading branch information
alexander-akait committed May 18, 2023
commit c8a865c2c74c59b89cc1f5d698c590b61ccb6a3c
22 changes: 15 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -184,9 +184,17 @@ Type:
<!-- use other name to prettify since import is reserved keyword -->

```ts
type import =
type importFn =
| boolean
| { filter: (url: string, media: string, resourcePath: string) => boolean };
| {
filter: (
url: string,
media: string,
resourcePath: string,
supports?: string,
layer?: string
) => boolean;
};
```

Default: `true`
Expand Down Expand Up @@ -693,11 +701,11 @@ Type:

```ts
type mode =
| "local"
| "global"
| "pure"
| "icss"
| ((resourcePath) => "local" | "global" | "pure" | "icss"))`
| "local"
| "global"
| "pure"
| "icss"
| ((resourcePath: string) => "local" | "global" | "pure" | "icss");
```

Default: `'local'`
Expand Down