mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-03-27 08:30:07 +01:00
Merge pull request #1002 from gktgroup/master
Aggiunto task "gulp watch" per aggiornare automaticamente CSS, JS e immagini
This commit is contained in:
commit
770eb88f65
11
gulpfile.js
11
gulpfile.js
@ -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));
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user