Skip to content

Commit 711a604

Browse files
authored
Update README.md
1 parent d5de94f commit 711a604

File tree

1 file changed

+0
-26
lines changed

1 file changed

+0
-26
lines changed

README.md

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -69,34 +69,8 @@ module.exports = {
6969
}
7070
```
7171

72-
## Usage
73-
74-
Add a rule for loading responsive images to your webpack config:
75-
76-
```js
77-
module.exports = {
78-
// ...
79-
module: {
80-
rules: [
81-
{
82-
test: /\.(jpe?g|png|webp)$/i,
83-
use: {
84-
loader: 'responsive-loader',
85-
options: {
86-
// If you want to enable sharp support:
87-
adapter: require('responsive-loader/sharp'),
88-
},
89-
},
90-
},
91-
],
92-
},
93-
}
94-
```
95-
9672
### Typescript
9773

98-
99-
10074
```typescript
10175
//declare a module to your type definitions files *.d.ts
10276
interface ResponsiveImageOutput {

0 commit comments

Comments
 (0)