File tree Expand file tree Collapse file tree 3 files changed +11
-1
lines changed
Expand file tree Collapse file tree 3 files changed +11
-1
lines changed Original file line number Diff line number Diff line change 5959 "eslint-plugin-react-19-upgrade" : " ^1.7.0" ,
6060 "eslint-plugin-react-hooks" : " ^7.0.0" ,
6161 "prettier" : " ^3.6.2" ,
62+ "rollup-plugin-visualizer" : " ^5.12.0" ,
6263 "sass" : " ^1.93.2" ,
6364 "stylelint" : " ^16.25.0" ,
6465 "stylelint-config-standard-scss" : " ^16.0.0" ,
Original file line number Diff line number Diff line change 11module . exports = {
22 key : process . env . RELATIVE_CI_KEY ,
33 upload : {
4- buildStaticAssetsSizeWebpack : 'build/index.html ' ,
4+ buildStaticAssetsSizeWebpack : './ build/stats.json ' ,
55 } ,
66} ;
Original file line number Diff line number Diff line change @@ -2,6 +2,8 @@ import { defineConfig } from 'vite';
22import react from '@vitejs/plugin-react' ;
33import svgr from 'vite-plugin-svgr' ;
44import path from 'path' ;
5+ import { visualizer } from 'rollup-plugin-visualizer' ;
6+ import fs from 'fs' ;
57
68export default defineConfig ( ( { mode } ) => ( {
79 base : './' ,
@@ -70,6 +72,13 @@ export default defineConfig(({ mode }) => ({
7072 assetsDir : '' ,
7173 sourcemap : mode === 'development' ? 'inline' : true ,
7274 rollupOptions : {
75+ plugins : [
76+ visualizer ( {
77+ filename : './build/stats.json' ,
78+ json : true ,
79+ open : false
80+ } )
81+ ] ,
7382 output : {
7483 manualChunks ( id ) {
7584 if ( id . includes ( 'node_modules' ) ) {
You can’t perform that action at this time.
0 commit comments