Browse Source

feat: enable stats

pull/2/head
Muthu Kumar 3 months ago
parent
commit
a618071ff3
Failed to extract signature
  1. 1
      .gitignore
  2. 3
      vite.config.ts

1
.gitignore

@ -7,6 +7,7 @@
# testing # testing
/coverage /coverage
/stats.html
# production # production
/build /build

3
vite.config.ts

@ -2,6 +2,7 @@ import { defineConfig } from "vite";
import { resolve } from "path"; import { resolve } from "path";
import react from "@vitejs/plugin-react"; import react from "@vitejs/plugin-react";
import svgr from "@svgr/rollup"; import svgr from "@svgr/rollup";
import { visualizer as visualiser } from "rollup-plugin-visualizer";
// https://vitejs.dev/config/ // https://vitejs.dev/config/
export default defineConfig({ export default defineConfig({
@ -11,12 +12,12 @@ export default defineConfig({
Object.assign(svgr({ ref: true, svgo: false }), { Object.assign(svgr({ ref: true, svgo: false }), {
enforce: "pre", enforce: "pre",
} as const), } as const),
visualiser(),
], ],
build: { build: {
rollupOptions: { rollupOptions: {
input: { input: {
main: resolve(__dirname, "index.html"), main: resolve(__dirname, "index.html"),
blog: resolve(__dirname, "blog.html"),
}, },
}, },
}, },

Loading…
Cancel
Save