diff --git a/quasar.config.js b/quasar.config.js index d9bc1e3..8a82845 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: [] },