config icon-genie to not generate icons when target is web or exclude with webpack
-
Hello friends, I recently made a build for cordova (quasar( and used icon genie to generate the icons, now when I build for the web webpack bundles all the icons:
I was looking for a way to exclude them with webpack-chain but I got lost.statics/icons/apple-icon-120x120.png 4.83 KiB [emitted] statics/icons/apple-icon-152x152.png 7.31 KiB [emitted] statics/icons/apple-icon-167x167.png 8.14 KiB [emitted] statics/icons/apple-icon-180x180.png 9.45 KiB [emitted] statics/icons/favicon-16x16.png 393 bytes [emitted] statics/icons/favicon-32x32.png 741 bytes [emitted] statics/icons/favicon-96x96.png 3.33 KiB [emitted] statics/icons/favicon.ico 70.5 KiB [emitted] statics/icons/icon-128x128.png 5.15 KiB [emitted] statics/icons/icon-192x192.png 10.4 KiB [emitted] statics/icons/icon-256x256.png 18.3 KiB [emitted] statics/icons/icon-384x384.png 35.9 KiB [emitted] statics/icons/icon-512x512.png 63.2 KiB [emitted] statics/icons/ms-icon-144x144.png 6.44 KiB [emitted] statics/icons/safari-pinned-tab.svg 19.1 KiB [emitted] Entrypoint app = js/runtime.8849a42a.js js/vendor.2315befb.js css/app.36ea8e3b.css js/app.8d5e9077.js
I tried this in quasar.conf.js:
extendWebpack(cfg) { cfg.module.rules.push({ { test: /\.png$/, exclude: [ '/src/static/icons', ], }); },
There is no error in the build output but the files are still there, I don’t know if icon-genie is creating the icons AFTER this rule, or if this rule is doing something at all