-
Notifications
You must be signed in to change notification settings - Fork 213
fix: fix default value of optimizeBundle setting #4473
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
Conversation
AI Language ReviewIn the "vaadin-plugin-properties" section, under `optimizeBundle`, the default value for this property has been updated from an implicit `false` in the old version to an explicit `true` in the new version. Ensure users are aware of this change, as it may affect the build output if they rely on the default behavior.
Additionally, consider adding a clarifying note in the description to inform users about the potential increase in build time when optimizing bundles due to bytecode scanning. This information was present in the `devmode.optimizeBundle` property description in the main "Properties Defined" table, but it should also be included here to maintain comprehensive and consistent documentation.
In general, ensure consistency between the main properties table and the Vaadin Plugin Properties table for shared settings. |
| |`vaadin.devmode.optimizeBundle` | ||
| |Optimizes frontend resource bundles. All frontend resources in the classpath are included by default in the generated bundle in development mode. When set to `true`, the frontend build creates an optimized bundle by including only frontend resources that are used from the application entry points. It uses bytecode scanning, which increases application start-up time. Set to `false` to skip the optimization in production mode. | ||
| |`false` | ||
| |`true` |
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.
This doesn't seem correct to me.
devmode.optimizeBundle is false by default (dev mode) whereas optimizeBundle build parameter is true.
I'd rather add optimizeBundle with true default into the Vaadin Plugin Properties section.
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.
Good point! Let me fix the PR as suggested
* fix: fix default value of optimizeBundle setting * apply review suggestions
No description provided.