Skip to content

Commit

Permalink
docs: add bundle report to tools page
Browse files Browse the repository at this point in the history
  • Loading branch information
davidyuk committed Jun 14, 2024
1 parent 1652a4b commit 5d4981e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions examples/browser/tools/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
},
"devDependencies": {
"@preact/preset-vite": "^2.8.2",
"rollup-plugin-visualizer": "^5.12.0",
"typescript": "^5.2.2",
"vite": "^5.2.0"
}
Expand Down
8 changes: 7 additions & 1 deletion examples/browser/tools/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
import { defineConfig } from 'vite'
import preact from '@preact/preset-vite'
import { visualizer } from 'rollup-plugin-visualizer'

// https://vitejs.dev/config/
export default defineConfig({
plugins: [preact()],
plugins: [
preact(),
visualizer({
filename: 'dist/stats.html',
}),
],
base: './',
})

0 comments on commit 5d4981e

Please sign in to comment.