mirror of
https://github.com/muerwre/markdown-home-tab.git
synced 2025-04-25 00:46:41 +07:00
added bundle analyzer
This commit is contained in:
parent
2a5dd5ca30
commit
6332e27cdc
4 changed files with 6228 additions and 229 deletions
|
@ -1,11 +1,22 @@
|
|||
import { defineConfig } from "vite";
|
||||
import { PluginOption, defineConfig } from "vite";
|
||||
import react from "@vitejs/plugin-react-swc";
|
||||
import * as path from "path";
|
||||
import svgr from "vite-plugin-svgr";
|
||||
import { visualizer } from "rollup-plugin-visualizer";
|
||||
|
||||
// https://vitejs.dev/config/
|
||||
export default defineConfig({
|
||||
plugins: [react(), svgr({ exportAsDefault: true })],
|
||||
plugins: [
|
||||
react(),
|
||||
svgr({ exportAsDefault: true }),
|
||||
visualizer({
|
||||
template: "treemap", // or sunburst
|
||||
open: true,
|
||||
gzipSize: true,
|
||||
brotliSize: true,
|
||||
filename: "analice.html",
|
||||
}) as PluginOption,
|
||||
],
|
||||
resolve: {
|
||||
alias: [{ find: "~", replacement: path.resolve("src") }],
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue