Answer the question
In order to leave comments, you need to log in
Why is Gulp not finding connected modules?
There is a gulpfile:
const gulp = require('gulp');
const lesstocss = require('./gulp/tasks/style');
const includetohtml = require('./gulp/tasks/include');
const svgsprite = require('./gulp/tasks/sprite');
const minifyImg = require('./gulp/tasks/imagemin');
const fonts = require('./gulp/tasks/fonts');
const del = require('./gulp/tasks/clean');
const serve = require('./gulp/tasks/serve');
const dev = gulp.parallel(lesstocss, fonts, minifyImg, svgsprite, includetohtml);
const build = gulp.series(del, dev);
module.exports.start = gulp.series(build, serve);
module.exports.build = build;
const gulp = require('gulp');
const img = require('gulp-imagemin');
module.exports = function image() {
return gulp.src('src/img/**')
.pipe(img([
img.mozjpeg({quality: 75, progressive: true}),
img.svgo()
]))
.pipe(gulp.dest('build/img'));
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question