forbid small assets to be encoded as base64 (fix pacman not present in build)

This commit is contained in:
axolotle 2021-04-06 16:58:44 +02:00
parent 5f1ae01222
commit 66e2742c94
2 changed files with 8 additions and 1 deletions

View file

@ -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)
}

View file

@ -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',