Add bundle analyzer
This commit is contained in:
parent
b6f41a8241
commit
539e1db931
@ -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",
|
||||
|
@ -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: './',
|
||||
|
Loading…
Reference in New Issue
Block a user