This commit is contained in:
MatteoPistorello 2021-12-06 12:46:21 +01:00
commit 8389e76625
1 changed files with 11 additions and 0 deletions

View File

@ -502,3 +502,14 @@ exports.srcCSS = srcCSS;
exports.bower = bower;
exports.release = release;
exports.default = bower;
// Watch task - lanciato con `gulp watch`, resta in attesa e ogni volta che viene modificato un asset in src
// viene aggiornata la dist
gulp.task('watch', function () {
gulp.watch('assets/src/css/*.css', gulp.series(srcCSS, CSS));
gulp.watch('assets/src/css/print/*.css', gulp.series(srcCSS, CSS));
gulp.watch('assets/src/css/themes/*.css', gulp.series(srcCSS, CSS));
gulp.watch('assets/src/js/base/*.js', gulp.series(srcJS, JS));
gulp.watch('assets/src/js/functions/*.js', gulp.series(srcJS, JS));
gulp.watch('assets/src/img/*', gulp.series(images));
});