Refactor the watch-task
This commit is contained in:
parent
ac76bf6715
commit
a027ba64a2
|
@ -152,6 +152,8 @@ export async function Build()
|
||||||
if (settings.Watch)
|
if (settings.Watch)
|
||||||
{
|
{
|
||||||
log.info(watchStartMessage);
|
log.info(watchStartMessage);
|
||||||
|
gulp.watch(settings.ThemeSource("**"), Theme);
|
||||||
|
gulp.watch(settings.TemplateSource("**"), Templates);
|
||||||
}
|
}
|
||||||
|
|
||||||
await Promise.all(
|
await Promise.all(
|
||||||
|
@ -230,7 +232,7 @@ export async function Library()
|
||||||
buffer()
|
buffer()
|
||||||
).pipe(
|
).pipe(
|
||||||
gulpIf(
|
gulpIf(
|
||||||
settings.Debug,
|
!settings.Debug,
|
||||||
terser()
|
terser()
|
||||||
)
|
)
|
||||||
).pipe(
|
).pipe(
|
||||||
|
|
Loading…
Reference in a new issue