From 66e2742c94ec84b2d549f0167d72af1233641ec2 Mon Sep 17 00:00:00 2001 From: axolotle Date: Tue, 6 Apr 2021 16:58:44 +0200 Subject: [PATCH] forbid small assets to be encoded as base64 (fix pacman not present in build) --- app/src/api/api.js | 2 +- app/vue.config.js | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/app/src/api/api.js b/app/src/api/api.js index 88b6e827..d199dccb 100644 --- a/app/src/api/api.js +++ b/app/src/api/api.js @@ -58,7 +58,7 @@ export default { async fetch (method, uri, data = {}, { wait = true, websocket = true, initial = false, asFormData = false } = {}) { // `await` because Vuex actions returns promises by default. const request = await store.dispatch('INIT_REQUEST', { method, uri, initial, wait, websocket }) - console.log(JSON.parse(JSON.stringify(request)), data) + if (websocket) { await openWebSocket(request) } diff --git a/app/vue.config.js b/app/vue.config.js index 30657c7a..253e4509 100644 --- a/app/vue.config.js +++ b/app/vue.config.js @@ -37,6 +37,13 @@ module.exports = { ) ] }, + chainWebpack: config => { + config.module + .rule('images') + .use('url-loader') + .loader('url-loader') + .tap(options => Object.assign(options, { limit: 0 })) + }, pluginOptions: { i18n: { locale: 'en',