File tree 1 file changed +5
-2
lines changed
1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,6 @@ const { applyResponsiveLoader } = require('./responsive-loader')
6
6
* Checks if a node module is installed in the current context
7
7
*
8
8
* @param {string } name - module name
9
- * @param {string } resolvePath - optional resolve path
10
9
* @returns {boolean }
11
10
*/
12
11
const isModuleInstalled = ( name ) => {
@@ -90,7 +89,11 @@ const getHandledImageTypes = (moduleConfig) => {
90
89
* @returns {number }
91
90
*/
92
91
const getNumOptimizationLoadersInstalled = loaders => Object . values ( loaders )
93
- . filter ( loader => loader && ( loader . startsWith ( 'imagemin-' ) || loader . startsWith ( 'webp-' ) ) ) . length
92
+ . filter ( loader => loader && (
93
+ loader . startsWith ( 'imagemin-' ) ||
94
+ loader . startsWith ( 'webp-' ) ||
95
+ loader . startsWith ( 'lqip-' )
96
+ ) ) . length
94
97
95
98
/**
96
99
* Appends all loaders to the webpack configuration
You can’t perform that action at this time.
0 commit comments