We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cc80898 commit f9f5d01Copy full SHA for f9f5d01
src/main.js
@@ -188,6 +188,9 @@ export const generateImageSizes = (options) => {
188
// Finds all the images we want based on dir and inputFormat
189
globby(`${dirGlob}/**/*.{${inputFormats.join(',')}}`)
190
.then((images) => {
191
+ // If no images were provided, resolve the queue.
192
+ if (images.length === 0) q.add(() => Promise.resolve());
193
+
194
// Map them into jimp objects
195
images
196
.filter((d) => d.indexOf('@') < 0 && d.indexOf('#') < 0)
0 commit comments