Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • G gulp
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 24
    • Issues 24
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 3
    • Merge requests 3
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • gulp
  • gulp
  • Issues
  • #2708
Closed
Open
Issue created Nov 26, 2022 by Miquel Alejandro Vicens Dalmau@mvicens

Watchers do not detect specific files

Taking this simple sample:

const { watch } = require('gulp');

function css(cb) {
	cb();
}

function js(cb) {
	cb();
}

exports.default = function () {
	watch('src/**/*.css', css);
	watch('src/scripts/index.js', js);
};

If you create any CSS file, it is detected correctly and a "Starting 'css'..." (and the appropriate finalization) appears in the console.

However, if you put the specific JS file, at the same time with its folder, nothing happens and no more during the stream lifecycle.

Why this behaviour? Is it a bug, right?

Assignee
Assign to
Time tracking