Hi,
For the records: it is possible to enable production mode for Gradle builds via the [DS Vaadin Flow Gradle Plugin]
(https://docs.devsoap.com/vaadin_flow_gradle_plugin/).
build.gradle:
plugins {
id 'com.devsoap.vaadin-flow' version '1.3.1'
}
//devsoap {
// email = 'xxx'
// key = 'xxx'
//}
vaadin {
productionMode = true
}
Since I tested this with Spring Boot, this was also required to get into the production mode:
application.properties:
vaadin.servlet.productionMode=true