Refactor the watch-task

This commit is contained in:
Manuel Thalmann 2019-10-07 18:44:32 +00:00
parent ac76bf6715
commit a027ba64a2

View file

@ -152,6 +152,8 @@ export async function Build()
if (settings.Watch)
{
log.info(watchStartMessage);
gulp.watch(settings.ThemeSource("**"), Theme);
gulp.watch(settings.TemplateSource("**"), Templates);
}
await Promise.all(
@ -230,7 +232,7 @@ export async function Library()
buffer()
).pipe(
gulpIf(
settings.Debug,
!settings.Debug,
terser()
)
).pipe(