Comments (5)
Hmm, I can't seem to reproduce this, and it doesn't look like you're doing anything wrong. Can you try using *
as the pattern and see if that gives you a result?
Also, are there any errors within the console when you run this?
from gulp-responsive-images.
Thanks for your answer. Tried it but same result. No errors in console.
I tried adding
.pipe(using())
before the responsive command. This yields a full list of the files in the images directory which is correct.
If I add after the responsive command (and before the dest command) it yields nothing (but should have yielded all files). This indicates that the problem is somewhere in the responsive command.
from gulp-responsive-images.
Just now stripped my gulpfile.js to the bare minimum to test this plugin and to make sure no other code interferes. No change.
This is now my complete file:
var gulp = require('gulp'),
responsive = require('gulp-responsive-images');
using = require('gulp-using');
gulp.task('respo', function () {
return gulp.src('images/**/*')
.pipe(responsive({
'*': [
{ width: 1600, suffix: '-w1600' }
]
}))
.pipe(using())
.pipe(gulp.dest('dist/images'));
});
gulp.task('default', function() {
gulp.start('respo');
});
Moving or removing pipe(using()) has no impact on outcome.
What can I test to help solve this bug?
from gulp-responsive-images.
Did you ever get this sorted out?
A colleague had a similar problem last week and it was down to him not having GraphicsMagick installed (as detailed in the README).
from gulp-responsive-images.
I sort of stopped trying and wrote a bash script instead. Works for me :-)
from gulp-responsive-images.
Related Issues (5)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gulp-responsive-images.