Skip to content

Commit 2ccbb37

Browse files
committed
Fix warning when only using lqip loader
1 parent a767aec commit 2ccbb37

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/loaders/index.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,11 @@ const getHandledImageTypes = (nextConfig) => {
9393
* @returns {number}
9494
*/
9595
const getNumOptimizationLoadersInstalled = loaders => Object.values(loaders)
96-
.filter(loader => loader && (loader.startsWith('imagemin-') || loader.startsWith('webp-'))).length;
96+
.filter(loader => loader && (
97+
loader.startsWith('imagemin-')
98+
|| loader.startsWith('webp-')
99+
|| loader.startsWith('lqip-')
100+
)).length;
97101

98102
/**
99103
* Appends all loaders to the webpack configuration

0 commit comments

Comments
 (0)