diff --git a/package.json b/package.json index e7fa8d3..a6b53a6 100644 --- a/package.json +++ b/package.json @@ -23,6 +23,7 @@ "eslint-plugin-vue": "^7.9.0", "leaflet": "^1.7.1", "normalize-scss": "^7.0.1", + "rollup-plugin-analyzer": "^4.0.0", "sass": "^1.32.13", "typescript": "~4.2.4", "vite": "^2.3.2", diff --git a/vite.config.ts b/vite.config.ts index e3f3bf5..3b18b2d 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -1,10 +1,11 @@ import { defineConfig } from 'vite'; import { resolve } from 'path'; import vue from '@vitejs/plugin-vue'; -import svgSpritePlugin from "vite-plugin-svg-sprite-component" +import svgSpritePlugin from "vite-plugin-svg-sprite-component"; +import analyze from 'rollup-plugin-analyzer'; export default defineConfig({ - plugins: [vue(), svgSpritePlugin({ + plugins: [vue(), analyze(), svgSpritePlugin({ symbolId: (name) => name, })], base: './',