Skip to content

Commit a1a94ff

Browse files
authored
Change documentation for a url filter function
This threw us for a few minutes since it said URL could be either a boolean or an object with the key url and a function. Then later in the readme it says a shape of `{url: { filter: () => boolean } }. This is also in the [webpack documentation](https://webpack.js.org/loaders/css-loader/#url) and I _think_ it's inaccurate.
1 parent 4dede55 commit a1a94ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ Type:
8686
type url =
8787
| boolean
8888
| {
89-
url: (url: string, resourcePath: string) => boolean;
89+
filter: (url: string, resourcePath: string) => boolean;
9090
};
9191
```
9292

0 commit comments

Comments
 (0)