diff --git a/interface/config-overrides.js b/interface/config-overrides.js index ad57d6a..b40971e 100644 --- a/interface/config-overrides.js +++ b/interface/config-overrides.js @@ -21,11 +21,11 @@ module.exports = function override(config, env) { const extractTextPlugin = config.plugins.find((plugin) => plugin instanceof ExtractTextPlugin); extractTextPlugin.filename = "css/[name].[contenthash:4].css"; - // add compression plugin, compress javascript, html and css + // add compression plugin, compress javascript config.plugins.push(new CompressionPlugin({ asset: "[path].gz[query]", algorithm: "gzip", - test: /\.(js|html|css)$/, + test: /\.(js)$/, deleteOriginalAssets: true })); } diff --git a/interface/public/favicon.ico b/interface/public/favicon.ico new file mode 100644 index 0000000..399ccae Binary files /dev/null and b/interface/public/favicon.ico differ diff --git a/src/main.cpp b/src/main.cpp index 61634ef..23112a6 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -51,6 +51,7 @@ void setup() { server.serveStatic("/css/", SPIFFS, "/www/css/"); server.serveStatic("/fonts/", SPIFFS, "/www/fonts/"); server.serveStatic("/app/", SPIFFS, "/www/app/"); + server.serveStatic("/favicon.ico", SPIFFS, "/www/favicon.ico"); // Serving all other get requests with "/www/index.htm" // OPTIONS get a straight up 200 response