-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Restore original Vite chunk size limit #713
base: main
Are you sure you want to change the base?
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,13 +18,18 @@ export default defineConfig(({ mode }) => { | |
|
||
return { | ||
build: { | ||
chunkSizeWarningLimit: 900, | ||
outDir, | ||
rollupOptions: { | ||
input: { | ||
main: resolve(__dirname, 'index.html'), | ||
_scrivito_extensions: resolve(__dirname, '_scrivito_extensions.html'), | ||
}, | ||
output: { | ||
manualChunks: { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Any metrics that point to having the same (or even better) performance with manual chunks? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. According to manual Lighthouse runs it's the same. Differences are all in the < 10 ms range. |
||
react: ['react-bootstrap', 'react-helmet-async', 'react-toastify'], | ||
apepper marked this conversation as resolved.
Show resolved
Hide resolved
|
||
scrivito: ['scrivito-neoletter-form-widgets'], | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. FMI: Please help my understand, what this
But There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, it includes dependencies. Same goes for the react-* packages, since they depend on |
||
}, | ||
}, | ||
}, | ||
}, | ||
define: { | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Besides the newly created
react
andscrivito
chunk there are still two js files in the end:main-<hex>.js
andindex-<hex>.js
- sincemain-<hex>.js
is quite small, can they be combined into one file?