Skip to content

Commit

Permalink
fix: ensure logo image is generated (#77)
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 authored Jul 3, 2024
1 parent 05e6868 commit c87d550
Showing 1 changed file with 11 additions and 0 deletions.
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 c87d550

Please sign in to comment.