Bom dia pessoal, estou recebendo a seguinte mensagem ao tentar otimizar as imagens:
[10:40:24] Using gulpfile ~\Documents\cursos Alura\front-end\engenheiro-front-end\Gulp\src\gulpfile.js
[10:40:24] Starting 'build-img'...
[10:40:24] Finished 'build-img' after 44 ms
[10:40:24] gulp-imagemin: Minified 0 images
package.json
{
"name": "src",
"version": "1.0.0",
"main": "index.js",
"dependencies": {},
"devDependencies": {
"gulp": "^3.9.1",
"gulp-imagemin": "^3.3.0"
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"gulp": "gulp"
},
"author": "",
"license": "ISC",
"description": ""
}
gulpfile.js
var gulp = require('gulp'),
imagemin = require('gulp-imagemin');
gulp.task('build-img', function(){
gulp.src('src/img/**/*')
.pipe(imagemin())
.pipe(gulp.dest('src/img'));
});