@flowaccount/scully-plugin-lazy-load-picture-tag
Advanced tools
Comparing version 0.0.1 to 0.0.2
@@ -61,3 +61,4 @@ "use strict"; | ||
const lib = doc.createElement('script'); | ||
lib.src = 'https://cdn.jsdelivr.net/npm/lazy-load-picture@0.0.1/lazy-load-picture.min.js'; | ||
lib.src = | ||
'https://cdn.jsdelivr.net/npm/lazy-load-picture@0.0.1/lazy-load-picture.min.js'; | ||
const s = doc.createElement('script'); | ||
@@ -80,3 +81,2 @@ s.innerHTML = ` | ||
} | ||
; | ||
//# sourceMappingURL=scully-plugin-lazy-load-picture-tag.js.map |
{ | ||
"name": "@flowaccount/scully-plugin-lazy-load-picture-tag", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"peerDependencies": { | ||
@@ -15,3 +15,3 @@ "@scullyio/scully": "latest" | ||
"type": "git", | ||
"url": "https://github.com/flowaccount/flowaccount/nx-plugins/libs/scully-plugin-lazy-load-picture-tag" | ||
"url": "https://github.com/flowaccount/nx-plugins/libs/scully-plugin-lazy-load-picture-tag" | ||
}, | ||
@@ -18,0 +18,0 @@ "keywords": [ |
@@ -27,3 +27,3 @@ # scully-plugin-lazy-load-picture-tag | ||
* Add this to your `scully.config.ts` file | ||
- Add this to your `scully.config.ts` file | ||
@@ -33,10 +33,13 @@ ```javascript | ||
const postRenderers = [getLazyLoadPictureTagPlugin({ | ||
imagePlaceholder: 'https://flowaccountcdn.com/new_landing/image/White_2px.jpg' | ||
})]; | ||
const postRenderers = [ | ||
getLazyLoadPictureTagPlugin({ | ||
imagePlaceholder: | ||
'https://flowaccountcdn.com/new_landing/image/White_2px.jpg' | ||
}) | ||
]; | ||
export const config: ScullyConfig = { | ||
routes: {}, | ||
defaultPostRenderers: postRenderers, | ||
} | ||
defaultPostRenderers: postRenderers | ||
}; | ||
``` | ||
@@ -43,0 +46,0 @@ |
Sorry, the diff of this file is not supported yet
8743
50