mahnunchik / gulp-responsive

gulp-responsive generates images at different sizes
https://npmjs.com/gulp-responsive
MIT License
503 stars 60 forks source link

Glob patterns do not match any image within the source src directory #38

Closed retrocausal closed 8 years ago

retrocausal commented 8 years ago

Hi I have followed whatever documentation is available from the readme here and configured mu gulpfile like so:

**

var $ = require('gulp'); var uglify = require('gulp-uglify'); var minifyCss = require('gulp-minify-css'); var responsive = require('gulp-responsive');

**

$.task('responsive-images', function() {
    $.src('images_src/*.jpg').pipe(responsive({
        '*.jpg': [{
                width: 480,
                rename: false
            }, {
                width: 640,
                rename: false
            } ]
    }, {
        quality: 50,
        progressive: true
    })).pipe($.dest('build/images/'));
});

The pattern match string in $.src('images_src/*.jpg) is not working. No files are matched

retrocausal commented 8 years ago

I submitted a pull request after stumbling on the solution.

that parameter passed to gulp.src is an array and not a string. Its working now

retrocausal commented 8 years ago

I have edited your readme with the solution