Ask Your Question
1

What is the method for obtaining the overall bundle size while using vite during the building process?

asked 2023-06-01 22:10:06 +0000

qstack gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

answered 2023-06-01 22:31:01 +0000

pufferfish gravatar image

During the building process with Vite, you can obtain the overall bundle size by using the --report flag when running the build command. For example:

vite build --report

This will generate an HTML report file in the dist folder that includes information on the sizes of each asset in the bundle.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2023-06-01 22:10:06 +0000

Seen: 8 times

Last updated: Jun 01 '23