Skip to content

Commit 8c48494

Browse files
committed
readme update
1 parent 264abc5 commit 8c48494

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

README.md

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ Default: `false`
240240

241241
Experimental: If `true`, this will cache the result object but not the image files. The images are only produced once, when they are not found in the results object cache, or when the options change (cache key). For Development you can set query parameter to individual images by using `?cacheDirectory=false`.
242242

243-
Default cache directory might be ```.node_modules/.cache/responsive-loader```
243+
Default cache directory might be `.node_modules/.cache/responsive-loader`
244244

245245
```js
246246
module.exports = {
@@ -254,8 +254,8 @@ module.exports = {
254254
options: {
255255
esModule: true,
256256
cacheDirectory: true,
257-
publicPath: "/_next",
258-
name: "static/media/[name]-[hash:7]-[width].[ext]",
257+
publicPath: '/_next',
258+
name: 'static/media/[name]-[hash:7]-[width].[ext]',
259259
},
260260
},
261261
],
@@ -327,9 +327,17 @@ In your webpack config, require your adapter
327327

328328
- Doesn't support `1x`, `2x` sizes, but you probably don't need it.
329329

330-
## See also
330+
## Usage Examples
331331

332-
- Inspired by [resize-image-loader](https://github.com/Levelmoney/resize-image-loader), but simpler and without dependency on ImageMagick
332+
### NextJS
333+
334+
- https://github.com/dazuaz/responsive-loader-example
335+
336+
### Pug
337+
338+
- [How to use responsive-loader with Pug](https://webdiscus.github.io/pug-plugin/responsive-image/). Thanks to the awesome [pug-loader](https://webdiscus.github.io/pug-plugin/hello-world/).
339+
340+
Please submit your own example to add here
333341

334342
[node]: https://img.shields.io/node/v/responsive-loader.svg
335343
[node-url]: https://nodejs.org

0 commit comments

Comments
 (0)