Refactor the watch-task
This commit is contained in:
parent
ac76bf6715
commit
a027ba64a2
1 changed files with 3 additions and 1 deletions
|
@ -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