gulp-4

Gulp 4 Split Tasks Across Multiple Files Using Gulp-Hub Fails Due to Missing Get Function

天大地大妈咪最大 提交于 2020-01-14 08:56:22
问题 Using Gulp 4 and the recipe for splitting my tasks into multiple files using gulp-hub throws this error just from attempting to load the task files. The task file is super simple just wanted to test everything was working. I found this reference on Undertaker on Github for the get function, but I really don't understand what they are trying to say, and it seems like gulp-hub is supposed to be doing the lifting. Anyone else run into this and know how to solve it? Gulp File 'use strict'; var

Gulp4 watch no reaction to changes

℡╲_俬逩灬. 提交于 2019-12-11 19:37:52
问题 Migrating to Gulp 4 I encountered serious issues: no reaction to changes when using gulp.watch or gulp-watch. import gulp from 'gulp'; // import {get as browserSync} from 'browser-sync'; import watch from 'gulp-watch'; // const bs = browserSync('server'); var bSync = require('browser-sync').create(); gulp.task('browser-sync', function() { bSync.init({ server: { baseDir: "../" }, notify: true }); }); gulp.task('watch', gulp.parallel('browser-sync', ()=> { global.watch = true; gulp.watch('app/

gulp.series() doesn't run tasks

泪湿孤枕 提交于 2019-12-10 18:06:03
问题 I can't figure out why gulp.series() is not firing in my callback function. I'm trying to grab a string from a user input with gulp-prompt and invoke a build and deployment function with gulp.series() . My tasks within gulp.series() don't fire at all. gulp.task('test', function(){ const prompt = require('gulp-prompt'); return gulp.src('test.js') .pipe(prompt.prompt({ type: 'checkbox', name: 'env', message: 'which environment do you want to deploy to?', choices: ['qa','prod'] },function(res){