From 85f408ae940eb9614a1b3673d6fe94649b0431d9 Mon Sep 17 00:00:00 2001 From: wh1te909 <7434746+wh1te909@users.noreply.github.com> Date: Fri, 8 Nov 2024 21:01:08 +0000 Subject: [PATCH] increase chunksize limit --- quasar.config.js | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/quasar.config.js b/quasar.config.js index d9bc1e37..8a82845a 100644 --- a/quasar.config.js +++ b/quasar.config.js @@ -8,6 +8,7 @@ // Configuration for your app // https://v2.quasar.dev/quasar-cli-vite/quasar-config-js +const { mergeConfig } = require("vite"); const { configure } = require("quasar/wrappers"); const path = require("path"); require("dotenv").config(); @@ -78,9 +79,19 @@ module.exports = configure(function (/* ctx */) { // polyfillModulePreload: true, distDir: "dist/", - // extendViteConf (viteConf) {}, + extendViteConf(viteConf, { isServer, isClient }) { + viteConf.build = mergeConfig(viteConf.build, { + chunkSizeWarningLimit: 1600, + rollupOptions: { + output: { + entryFileNames: `[hash].js`, + chunkFileNames: `[hash].js`, + assetFileNames: `[hash].[ext]`, + }, + }, + }); + }, // viteVuePluginOptions: {}, - // vitePlugins: [] },