Skip to content

Commit c249340

Browse files
vaadin-botmcollovatimshabarov
authored
fix: fix default value of optimizeBundle setting (#4473) (#4677)
* fix: fix default value of optimizeBundle setting * apply review suggestions Co-authored-by: Marco Collovati <[email protected]> Co-authored-by: Mikhail Shabarov <[email protected]>
1 parent 373385f commit c249340

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

articles/flow/configuration/properties.adoc

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ Bundle parameter controls parts of frontend bundle creation.
229229
|`vaadin.frontend.hotdeploy.dependencies`
230230
|A comma-separated list of module directories to watch for frontend file changes when detecting hot-deployable resources. Entries need to point to directories relative to the module that starts the Vaadin application, and can point to the module itself as well, in case it provides frontend files as resources. The value could be for example "./,./component-module-1,./component-module-2". Flow will watch for changes in both `src/main/resources/META-INF/resources/frontend` and the legacy `src/main/resources/META-INF/frontend` directories under the given three directory entries.
231231

232-
Do note that if this parameter is not defined, Vaadin wathes for changes under `src/main/resources/META-INF/` in the module that starts the Vaadin application, but when you provide a custom value for the parameter you need to add "./" to the list of directories to watch for the same effect.
232+
Do note that if this parameter is not defined, Vaadin watches for changes under `src/main/resources/META-INF/` in the module that starts the Vaadin application, but when you provide a custom value for the parameter you need to add "./" to the list of directories to watch for the same effect.
233233
|``
234234
|Development
235235

@@ -397,6 +397,12 @@ The following table contains the properties that are used only by the Vaadin Mav
397397
|`false`
398398
|Build
399399

400+
|`optimizeBundle`
401+
|
402+
|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.
403+
|`true`
404+
|Bundle
405+
400406
|`frontendDirectory`
401407
|
402408
|Directory containing the project's frontend files. Can be given as relative or absolute.

0 commit comments

Comments
 (0)