diff --git a/vite.config.js b/vite.config.js index 844db42..5dbd872 100644 --- a/vite.config.js +++ b/vite.config.js @@ -1,6 +1,7 @@ import { fileURLToPath, URL } from 'node:url'; import { defineConfig } from 'vite'; +import legacy from '@vitejs/plugin-legacy'; import vue from '@vitejs/plugin-vue'; import vueJsx from '@vitejs/plugin-vue-jsx'; @@ -10,8 +11,16 @@ function getPath(url = '') { export default defineConfig({ base: './', + build: { + assetsInlineLimit: 0, + }, envPrefix: 'V_ENV_', plugins: [ + legacy({ + renderLegacyChunks: true, + renderModernChunks: true, + targets: ['defaults', 'not IE 11'], + }), vue(), vueJsx(), ],