gulp-community / gulp-less

A LESS plugin for Gulp
559 stars 116 forks source link

while gulp.watch() with gulp-less, it make additional file *.css in current src folder #319

Closed meiqi502 closed 2 years ago

meiqi502 commented 2 years ago

content of gulpfile.js

` gulp.task('less', function() { return gulp.src('./src/*/.less') .pipe(gulpLess()) .pipe(gulp.dest(dist)) })

gulp.task('watch', function() { gulp.watch('./src/*/.less', {events: ['add', 'change']}, gulp.series('less')); })

gulp.task('default', gulp.series('watch')) `

modify less file, there is additional file *.css.

image