From 4003f8ea979977e4620eb367ea3da81f8d92cafd Mon Sep 17 00:00:00 2001 From: Andrea Leardini Date: Wed, 3 Jul 2024 11:27:13 +0200 Subject: [PATCH 1/2] fix: ensure logo image is generated By default vue-cli-service does not generate images smaller than 4KB but replaces them with inline base64. This change ensures that image files are always generated, regardless of their size. --- ui/vue.config.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/ui/vue.config.js b/ui/vue.config.js index 20f9687..2b81b13 100644 --- a/ui/vue.config.js +++ b/ui/vue.config.js @@ -8,4 +8,15 @@ module.exports = { }, }, }, + chainWebpack: (config) => { + config.module + .rule("images") + .use("url-loader") + .loader("url-loader") + .tap((options) => { + // Do not base64 encode images URLs. Needed to always generate module logo image + options.limit = -1; + return options; + }); + }, }; From 00819856559a85afff451bbda91da04398410334 Mon Sep 17 00:00:00 2001 From: Andrea Leardini Date: Wed, 3 Jul 2024 11:28:03 +0200 Subject: [PATCH 2/2] fix: vscode devcontainer name --- .devcontainer/devcontainer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index cee5521..1f264ff 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -1,7 +1,7 @@ // For format details, see https://aka.ms/devcontainer.json. For config options, see the README at: // https://github.com/microsoft/vscode-dev-containers/tree/v0.245.2/containers/javascript-node { - "name": "ns8-kickstart", + "name": "ns8-netdata", "image": "mcr.microsoft.com/devcontainers/javascript-node:0-18-bullseye", // Configure tool-specific properties. "customizations": {