M
M
Marty McFly2020-07-06 12:48:34
gulp.js
Marty McFly, 2020-07-06 12:48:34

How can I force gulp to watch files in a directory that starts with a dot?

Greetings!
Gulp.watch does not notice changes to files that are located in directories whose names contain a dot.
In gulp.src it helps to set the dot: true option, but it doesn't help in watch.

const watch = () => {
    gulp.watch(
        [ "./**/*.scss" ],
        { dot: true },
        componentsScss
    );
};

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question