Closed meiqi502 closed 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.
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.