-
-
Notifications
You must be signed in to change notification settings - Fork 56
Open
Description
Taking this Gulp file:
const { watch } = require('gulp');
function css(cb) {
cb();
}
function js(cb) {
cb();
}
function defaultTask(cb) {
watch('src/**/*.css', css);
watch('src/scripts/index.js', js);
cb();
}
exports.default = defaultTask;And, starting from an empty folder src, ...
- Run Gulp command.
- Create a CSS file. ✅ It is detected correctly (a "Starting 'css'..." and the appropriate finalization appear in the console).
- Change the content of this file. ✅ Detected.
- So, put the specific JS file. ❌ Nothing happens.
- Change its content. ❌ Nothing.
- Rerun command (finish and start again).
- Change the CSS content. ✅ Detected.
- Change the JS content. ✅ Detected.
Why this behaviour (steps 4 & 5)? Is it a bug, right?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels