diff --git a/scripts/build-frontend.js b/scripts/build-frontend.js index 092a3585..1efddf9f 100644 --- a/scripts/build-frontend.js +++ b/scripts/build-frontend.js @@ -95,8 +95,13 @@ function bundleConfig(config) { './static/js/.config.autogen.json', JSON.stringify(config)); } +function copyFile(source, target) { + fs.createReadStream(source).pipe(fs.createWriteStream(target)); +} + const config = getConfig(); bundleConfig(config); bundleHtml(config); bundleCss(); bundleJs(); +copyFile('static/favicon.png', 'public/favicon.png'); diff --git a/static/favicon.png b/static/favicon.png new file mode 100644 index 00000000..22ce3920 Binary files /dev/null and b/static/favicon.png differ diff --git a/static/html/index.htm b/static/html/index.htm index 7ea13ff2..2dbceab5 100644 --- a/static/html/index.htm +++ b/static/html/index.htm @@ -3,9 +3,10 @@