Skip to content

Commit

Permalink
fix: add default logo (#47)
Browse files Browse the repository at this point in the history
* fix: add default logo

* 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.
  • Loading branch information
andre8244 authored Jul 3, 2024
1 parent 504a8e6 commit 38d4922
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 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.
17 changes: 14 additions & 3 deletions ui/vue.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,19 @@ module.exports = {
optimization: {
splitChunks: {
minSize: 10000,
maxSize: 250000,
},
},
maxSize: 250000
}
}
},
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 38d4922

Please sign in to comment.