diff --git a/gulpfile.ts b/gulpfile.ts index 2b74e68..2851590 100644 --- a/gulpfile.ts +++ b/gulpfile.ts @@ -44,6 +44,18 @@ export function Assets(): NodeJS.ReadWriteStream dest(context.StaticPath(context.AssetDirName))); } +/** + * Builds the icon of the webpage. + * + * @returns + * The resulting stream. + */ +export function Icon(): NodeJS.ReadWriteStream +{ + return src(context.SourcePath("favicon.ico")).pipe( + dest(context.StaticPath())); +} + /** * Builds the web pages. * @@ -69,6 +81,7 @@ export function Build(): Promise JavaScript, Styles, Assets, + Icon, WebPages ])( (error) => @@ -159,6 +172,12 @@ export let Watch: TaskFunction = async (): Promise => Assets, BrowserSync(syncer, join(context.AssetDirName, "**", "*")))); + watch( + context.SourcePath("favicon.ico"), + series( + Icon, + BrowserSync(syncer, join("favicon.ico")))); + watch( context.SourcePath("**", "*.html"), series( diff --git a/src/favicon.ico b/src/favicon.ico new file mode 100644 index 0000000..981cbbc Binary files /dev/null and b/src/favicon.ico differ