Skip to content

Commit

Permalink
fix: ensure logo image is generated
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
andre8244 committed Jul 3, 2024
1 parent 7178d09 commit cee43f8
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
Binary file modified ui/src/assets/module_default_logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions ui/vue.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
});
},
};

0 comments on commit cee43f8

Please sign in to comment.