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
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