Skip to content

Commit

Permalink
Merge pull request #136 from relative-ci/add-rollup-plugin-stats
Browse files Browse the repository at this point in the history
chore: Add rollup-plugin-stats
  • Loading branch information
vio authored Sep 23, 2024
2 parents 7b9576d + 900405f commit 3306ee6
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 0 deletions.
16 changes: 16 additions & 0 deletions package-lock.json

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

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"@vitejs/plugin-react": "^4.0.0",
"eslint": "^8.8.0",
"eslint-config-airbnb": "^19.0.4",
"rollup-plugin-stats": "^0.1.0",
"rollup-plugin-webpack-stats": "^1.0.0",
"vite": "^5.0.0"
},
Expand Down
3 changes: 3 additions & 0 deletions vite.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
import webpackStatsPlugin from 'rollup-plugin-webpack-stats';
import { rollupStats } from 'rollup-plugin-stats';

export default defineConfig((env) => ({
build: {
Expand All @@ -16,5 +17,7 @@ export default defineConfig((env) => ({
react(),
// Output webpack-stats.json file
webpackStatsPlugin(),
// Output stats.json file
rollupStats(),
],
}));

0 comments on commit 3306ee6

Please sign in to comment.