Refactor the watch-task
This commit is contained in:
parent
ac76bf6715
commit
a027ba64a2
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue