Add bundle analyzer
This commit is contained in:
parent
b6f41a8241
commit
539e1db931
@ -23,6 +23,7 @@
|
|||||||
"eslint-plugin-vue": "^7.9.0",
|
"eslint-plugin-vue": "^7.9.0",
|
||||||
"leaflet": "^1.7.1",
|
"leaflet": "^1.7.1",
|
||||||
"normalize-scss": "^7.0.1",
|
"normalize-scss": "^7.0.1",
|
||||||
|
"rollup-plugin-analyzer": "^4.0.0",
|
||||||
"sass": "^1.32.13",
|
"sass": "^1.32.13",
|
||||||
"typescript": "~4.2.4",
|
"typescript": "~4.2.4",
|
||||||
"vite": "^2.3.2",
|
"vite": "^2.3.2",
|
||||||
|
@ -1,10 +1,11 @@
|
|||||||
import { defineConfig } from 'vite';
|
import { defineConfig } from 'vite';
|
||||||
import { resolve } from 'path';
|
import { resolve } from 'path';
|
||||||
import vue from '@vitejs/plugin-vue';
|
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({
|
export default defineConfig({
|
||||||
plugins: [vue(), svgSpritePlugin({
|
plugins: [vue(), analyze(), svgSpritePlugin({
|
||||||
symbolId: (name) => name,
|
symbolId: (name) => name,
|
||||||
})],
|
})],
|
||||||
base: './',
|
base: './',
|
||||||
|
Loading…
Reference in New Issue
Block a user