A
A
Alexander Sushchin2021-04-27 11:26:45
gulp.js
Alexander Sushchin, 2021-04-27 11:26:45

Why doesn't GULP refresh the page on a change in a file?

I follow the changes in the style file, when the file changes, I want the task to be executed and the page to be reloaded, the task is executed but the page is not reloaded

, this is the task itself:
gulp.task('libs_styles', () => {
return gulp
.src('src/ scss/vendor.scss')
.pipe(map.init())
.pipe(sass({
outputStyle: 'compressed'
}).on('error', sass.logError))
.pipe(concat('vendor.min .css'))
.pipe(map.write('../sourcemaps/'))
.pipe(size(settings_size))
.pipe(gulp.dest('build/css/'))

});

This is how I watch the file:
gulp.watch('src/scss/vendor.scss',

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