Add bundle analyzer

This commit is contained in:
James Lyne 2021-05-24 16:43:13 +01:00
parent b6f41a8241
commit 539e1db931
2 changed files with 4 additions and 2 deletions

View File

@ -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",

View File

@ -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: './',