From 8ce2c778229111b43abcfc0e128979a2f05f2a04 Mon Sep 17 00:00:00 2001 From: Stefan Seifert Date: Sat, 21 Sep 2024 12:19:58 +0200 Subject: [PATCH] Exclude assets not required at runtime increase chunkSizeWarningLimit --- .../unknown.psd => resources/action-unknown.psd | Bin {public/img/icons => resources}/app-icon.psd | Bin .../build-road-upgrade-link.psd | Bin vite.config.ts | 3 +++ 4 files changed, 3 insertions(+) rename src/assets/icons/action/unknown.psd => resources/action-unknown.psd (100%) rename {public/img/icons => resources}/app-icon.psd (100%) rename {src/assets/icons/action => resources}/build-road-upgrade-link.psd (100%) diff --git a/src/assets/icons/action/unknown.psd b/resources/action-unknown.psd similarity index 100% rename from src/assets/icons/action/unknown.psd rename to resources/action-unknown.psd diff --git a/public/img/icons/app-icon.psd b/resources/app-icon.psd similarity index 100% rename from public/img/icons/app-icon.psd rename to resources/app-icon.psd diff --git a/src/assets/icons/action/build-road-upgrade-link.psd b/resources/build-road-upgrade-link.psd similarity index 100% rename from src/assets/icons/action/build-road-upgrade-link.psd rename to resources/build-road-upgrade-link.psd diff --git a/vite.config.ts b/vite.config.ts index ea217fd..cef8be9 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -9,6 +9,9 @@ import { description, appDeployName } from './package.json' // https://vitejs.dev/config/ export default defineConfig({ base: `/${appDeployName}/`, + build: { + chunkSizeWarningLimit: 5242880 + }, plugins: [ vue(), VitePWA({