Not working `livereload` with extension `css`.
Yuriy-Svetlov opened this issue · 0 comments
Yuriy-Svetlov commented
Hello! Very much thank you for this lib!
// Not working livereload
with extension css
. But if set php
, scss
or sass
- it working!
gulp.task('watchminifycss', function () {
return watch('basic/views/layouts/index/html_source/css/**/*.scss', { verbose: true, "ignoreInitial": false}, function (events) {
gulp.src('basic/views/layouts/index/html_source/css/**/*.scss')
.pipe(plumber())
.pipe(cssnano())
.pipe(gulp.dest('basic/views/layouts/index/css/'))
.pipe(livereload({ start: true }));
});
});
gulp.task('livereload', function () {
livereload.listen();
});
gulp.task('wi', ['livereload', 'watchminifycss']);