From e2987ca80335f2886adc2d317ac10d5ee909f9c9 Mon Sep 17 00:00:00 2001 From: Nix Date: Thu, 29 Feb 2024 23:29:45 +0100 Subject: [PATCH] Revert "Update gulpfile" This reverts commit 97bef09c63d3017562eae56430d4ab80992fc861. --- gulpfile.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/gulpfile.js b/gulpfile.js index 2e12807..38bf418 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -17,4 +17,11 @@ gulp.task('minify-css', () => { .pipe(gulp.dest('wwwroot/css')); }); +// Beobachtet Ă„nderungen in JS und CSS Dateien +gulp.task('watch', () => { + gulp.watch('wwwroot/js/**/*.js', gulp.series('minify-js')); + gulp.watch('wwwroot/css/**/*.css', gulp.series('minify-css')); +}); + +// Standardtask, der Minimierungsaufgaben und Watcher startet gulp.task('default', gulp.series(['minify-js', 'minify-css', 'watch']));