Skip to content

Commit 60a56e7

Browse files
fix: handle the srcset attribute for all tags (#225)
BREAKING CHANGE: handle the `srcset` attribute for all tags
1 parent 75ff362 commit 60a56e7

17 files changed

+4718
-1383
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ You may need to specify loaders for images in your configuration (recommended `f
5757

5858
| Name | Type | Default | Description |
5959
| :-------------------------------: | :-----------------: | :------------------------------------------: | :--------------------------------------- |
60-
| **[`attributes`](#attributes)** | `{Array\|String}` | `['img:src', 'source:srcset']` | Enables/Disables attributes handling |
60+
| **[`attributes`](#attributes)** | `{Array\|String}` | `['img:src', ':srcset']` | Enables/Disables attributes handling |
6161
| **[`root`](#root)** | `{String}` | `undefiend` | Allow to handle root-relative attributes |
6262
| **[`interpolate`](#interpolate)** | `{Boolean\|String}` | `false` | Allow to use expressions in HTML syntax |
6363
| **[`minimize`](#minimize)** | `{Boolean\|Object}` | `true` in production mode, otherwise `false` | Tell `html-loader` to minimize HTML |
@@ -66,7 +66,7 @@ You may need to specify loaders for images in your configuration (recommended `f
6666
### `attributes`
6767

6868
Type: `Array|String`
69-
Default: `['img:src', 'source:srcset']`
69+
Default: `['img:src', ':srcset']`
7070

7171
You can specify which tag-attribute combination should be processed by this loader via the query parameter `attributes`.
7272
Pass an array or a space-separated list of `<tag>:<attribute>` combinations. (Default: `attributes=img:src`)

0 commit comments

Comments
 (0)