Skip to content

Commit bfb4f0e

Browse files
authoredMay 14, 2020
docs: improve the description for the toType option (#467)
1 parent c0c9fa7 commit bfb4f0e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -288,8 +288,8 @@ We try to automatically determine the `type` so you most likely do not need this
288288

289289
| Name | Type | Default | Description |
290290
| :--------------: | :--------: | :---------: | :------------------------------------------------------------------------------------------------- |
291-
| **`'dir'`** | `{String}` | `undefined` | If `from` is directory, `to` has no extension or ends in `'/'` |
292-
| **`'file'`** | `{String}` | `undefined` | If `to` has extension or `from` is file |
291+
| **`'dir'`** | `{String}` | `undefined` | If `to` has no extension or ends on `'/'` |
292+
| **`'file'`** | `{String}` | `undefined` | If `to` is not a directory and is not a template |
293293
| **`'template'`** | `{String}` | `undefined` | If `to` contains [a template pattern](https://github.com/webpack-contrib/file-loader#placeholders) |
294294

295295
##### `'dir'`

0 commit comments

Comments
 (0)
Please sign in to comment.