From 90724659228c257bc876d64f72981c6d9dce373e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ce=CC=81dric=20Andrietti?= Date: Mon, 14 Oct 2024 14:37:15 +0200 Subject: [PATCH 1/2] fix nolazyload tpl --- config/WebpackImageSizesPlugin.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/config/WebpackImageSizesPlugin.js b/config/WebpackImageSizesPlugin.js index 0c3037a9..c40b57fb 100644 --- a/config/WebpackImageSizesPlugin.js +++ b/config/WebpackImageSizesPlugin.js @@ -68,7 +68,12 @@ class WebpackImageSizesPlugin { */ function getTemplateFileNames() { return fs.readdirSync(that._tplFolder).filter((tpl) => { - if (tpl !== 'default-picture.tpl' && tpl !== 'default-picture-caption.tpl') { + if ( + tpl !== 'default-picture.tpl' && + tpl !== 'default-picture-caption.tpl' && + tpl !== 'default-picture-nolazyload.tpl' && + tpl !== 'default-picture-nolazyload-caption.tpl' + ) { return tpl } }) From 176210e75b3e58923e678bc0821514074a17e09e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ce=CC=81dric=20Andrietti?= Date: Mon, 14 Oct 2024 14:40:15 +0200 Subject: [PATCH 2/2] add no lazyload tpl example --- assets/conf-img/tpl/square-nolazyload.tpl | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 assets/conf-img/tpl/square-nolazyload.tpl diff --git a/assets/conf-img/tpl/square-nolazyload.tpl b/assets/conf-img/tpl/square-nolazyload.tpl new file mode 100644 index 00000000..e0996eae --- /dev/null +++ b/assets/conf-img/tpl/square-nolazyload.tpl @@ -0,0 +1,2 @@ + + \ No newline at end of file