Answer the question
In order to leave comments, you need to log in
Why could gulp stop running?
Why could gulp stop running? Yesterday everything worked, today it does not start
const gulp = require('gulp');
const path = require('./gulp/path');
const { clear } = require('./gulp/tasks/clear');
const { html } = require('./gulp/tasks/html');
const { cssDev, cssBuild } = require('./gulp/tasks/css');
const { jsDev, jsBuild } = require('./gulp/tasks/js');
const { imgDev, imgBuild, svg } = require('./gulp/tasks/img');
const { fontsDev, fontsBuild } = require('./gulp/tasks/fonts');
const { video } = require('./gulp/tasks/video');
const { json } = require('./gulp/tasks/json');
const { serve } = require('./gulp/tasks/serve');
const { watch } = require('./gulp/tasks/watch');
function dev() {
return new Promise(gulp.series(
clear,
gulp.parallel(
html,
cssDev,
jsDev,
imgDev,
svg,
fontsDev,
video,
json
)
));
}
function build() {
return new Promise(gulp.series(
clear,
gulp.parallel(
html,
cssBuild,
jsBuild,
fontsBuild,
imgBuild,
svg,
video,
json
)
));
}
exports.clear = clear;
exports.html = html;
exports.cssDev = cssDev;
exports.cssBuild = cssBuild;
exports.jsDev = jsDev;
exports.jsBuild = jsBuild;
exports.imgDev = imgDev;
exports.imgBuild = imgBuild;
exports.svg = svg;
exports.fontsDev = fontsDev;
exports.fontsBuild = fontsBuild;
exports.video = video;
exports.json = json;
exports.serve = serve;
exports.watch = watch;
exports.dev = dev;
exports.build = build;
exports.default = gulp.series(
dev,
gulp.parallel(serve, watch)
);
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