We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
After running a gulp task (gulp serve) and then pressing ctrl-c, I expected the task to end.
gulp serve
The task keeps running in the background.
"use strict"; const gulp = require('gulp'), browsersync = require('browser-sync').create(), sass = require('gulp-sass'), notify = require('gulp-notify'), cssnano = require('gulp-cssnano'); const supported = [ "defaults" ]; // BrowserSync function browserSync(done) { browsersync.init({ /* server: { baseDir: ".", }, */ host: 'https://localhost:8443', proxy: 'https://localhost:8443', port: 3000, open: false }); done(); } // BrowserSync Reload function browserSyncReload(done) { browsersync.reload(); done(); } //Watch function watchFiles(){ gulp.watch("borrow-style.scss", scss); gulp.watch("./scss/*.scss", scss); gulp.watch("./client/scss/*.scss", scss); gulp.watch("./js/*.js").on('change', browsersync.reload); gulp.watch("./*.php").on('change', browsersync.reload); gulp.watch("./anotherstyle.css").on('change', browsersync.reload); gulp.watch("./style.css").on('change', browsersync.reload); gulp.watch("./template-parts/*.php").on('change', browsersync.reload); } function scss(){ return gulp .src("borrow-style.scss") .pipe(sass({ outputStyle: 'compressed' }).on('error', sass.logError)) .pipe(cssnano({ zindex: false, autoprefixer: {browsers: supported, add: true} })) .pipe(gulp.dest(".")) .pipe(notify("Compiled: <%= file.relative %>")) .pipe(browsersync.stream()); } const serve = gulp.parallel(watchFiles, browserSync); exports.serve = serve;
If I run ps I can see:
ps
PID TTY TIME CMD 777 ttys000 0:00.73 -zsh 3229 ttys000 0:03.31 gulp serve
node -v
npm -v
gulp -v
The text was updated successfully, but these errors were encountered:
This issue tracker is not for help with external modules.
Sorry, something went wrong.
I'm sorry - I don't follow?
My issue is with Gulp tasks not stopping - not module.
Can you point me in the right direction instead of a total dead end?
I cannot because this is not a support forum.
No branches or pull requests
What were you expecting to happen?
After running a gulp task (
gulp serve
) and then pressing ctrl-c, I expected the task to end.What actually happened?
The task keeps running in the background.
Please give us a sample of your gulpfile
Terminal output / screenshots
If I run
ps
I can see:Please provide the following information:
node -v
):v14.17.1npm -v
):9.7.1gulp -v
):4.0.2The text was updated successfully, but these errors were encountered: