Skip to content

How to generate a bundle analysis #114

Answered by frandiox
moeriki asked this question in Q&A
Discussion options

You must be logged in to vote

@moeriki You can pass options only to client or server builds in the plugin:

viteSSR({
      build: {
        clientOptions: {
          plugins: []
        },
        serverOptions: {
          plugins: []
        }
      }
    })

If you want to visualize both, I guess you can add the plugin twice with different file output?

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by moeriki
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants