Skip to content

Commit

Permalink
Continue using vendor chunk
Browse files Browse the repository at this point in the history
  • Loading branch information
JLyne committed Jun 18, 2022
1 parent f4d489b commit 411d95d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { resolve } from 'path';
import vue from '@vitejs/plugin-vue';
import svgSpritePlugin from "vite-plugin-svg-sprite-component";
import analyze from 'rollup-plugin-analyzer';
import { splitVendorChunkPlugin } from 'vite'

export default defineConfig(({ mode }) => {
const env = loadEnv(mode, process.cwd())
Expand All @@ -21,7 +22,7 @@ export default defineConfig(({ mode }) => {
);

return {
plugins: [vue(), analyze(), svgSpritePlugin({
plugins: [splitVendorChunkPlugin(), vue(), analyze(), svgSpritePlugin({
symbolId: (name) => `icon--${name}`,
removeAttrs: ['xmlns', 'width', 'height', 'version']
})],
Expand Down

0 comments on commit 411d95d

Please sign in to comment.