Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
dazuaz authored Jul 31, 2022
1 parent d5de94f commit 711a604
Showing 1 changed file with 0 additions and 26 deletions.
26 changes: 0 additions & 26 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,34 +69,8 @@ module.exports = {
}
```

## Usage

Add a rule for loading responsive images to your webpack config:

```js
module.exports = {
// ...
module: {
rules: [
{
test: /\.(jpe?g|png|webp)$/i,
use: {
loader: 'responsive-loader',
options: {
// If you want to enable sharp support:
adapter: require('responsive-loader/sharp'),
},
},
},
],
},
}
```

### Typescript



```typescript
//declare a module to your type definitions files *.d.ts
interface ResponsiveImageOutput {
Expand Down

0 comments on commit 711a604

Please sign in to comment.