Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Source file not found (for existing file) #145

Open
agocsbence opened this issue Apr 3, 2020 · 0 comments
Open

Source file not found (for existing file) #145

agocsbence opened this issue Apr 3, 2020 · 0 comments

Comments

@agocsbence
Copy link

agocsbence commented Apr 3, 2020

The task finishes with the following setup, but without result files:

gulp.task('srcset', function(){ return gulp.src('./assets/src/img/*.{png,jpg}') .pipe( responsive({ 'belga.png': [{ width: 300, rename: { suffix: '-300' } }, { width: 350, rename: { suffix: '-350' } }, { width: 700, rename: { suffix: '-700' } }] })) .pipe(gulp.dest('./assets/src/img/thumbnails')) });

But when an exact file is given in the src() path, it turns out, that the function can't find any files.

gulp.task('srcset', function(){ return gulp.src('./assets/src/img/belga.png}') .pipe( responsive({ 'belga.png': [{ width: 300, rename: { suffix: '-300' } }, { width: 350, rename: { suffix: '-350' } }, { width: 700, rename: { suffix: '-700' } }] })) .pipe(gulp.dest('./assets/src/img/thumbnails')) });

The img folder surely contains the image at the given URL.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant