Skip to content

Commit

Permalink
chore: 🤖 add rollup-plugin-visualizer (#52)
Browse files Browse the repository at this point in the history
  • Loading branch information
bingryan authored May 23, 2023
1 parent eb74ca3 commit bd50b2c
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,6 @@ dist-ssr
.history
.local
yarn.lock
# rollup-plugin-visualizer
stats.html

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@
"mockjs": "^1.1.0",
"postcss": "8.4.17",
"prettier": "^2.7.1",
"rollup-plugin-visualizer": "^5.9.0",
"stylelint": "^14.13.0",
"stylelint-config-prettier": "^9.0.3",
"stylelint-config-rational-order": "^0.1.2",
Expand Down
28 changes: 28 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import vue from '@vitejs/plugin-vue';
import { viteMockServe } from 'vite-plugin-mock';
import VueDevTools from 'vite-plugin-vue-devtools';
import { createSvgIconsPlugin } from 'vite-plugin-svg-icons';
import { visualizer } from 'rollup-plugin-visualizer';

// https://vitejs.dev/config/
export default defineConfig(async ({ command }: ConfigEnv) => {
Expand All @@ -23,6 +24,7 @@ export default defineConfig(async ({ command }: ConfigEnv) => {
mockPath: 'mock',
localEnabled: command === 'serve',
}),
visualizer(),
],

// Vite options tailored for Tauri development and only applied in `tauri dev` or `tauri build`
Expand Down

0 comments on commit bd50b2c

Please sign in to comment.