Skip to content

Commit 09dcf29

Browse files
committed
Add production mode profile
1 parent 3b4a302 commit 09dcf29

File tree

1 file changed

+33
-1
lines changed

1 file changed

+33
-1
lines changed

pom.xml

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,5 +254,37 @@
254254
</plugins>
255255
</build>
256256
</profile>
257+
258+
<!-- Run (demo) in production mode -->
259+
<profile>
260+
<id>production</id>
261+
<properties>
262+
<vaadin.productionMode>true</vaadin.productionMode>
263+
</properties>
264+
<dependencies>
265+
<dependency>
266+
<groupId>com.vaadin</groupId>
267+
<artifactId>flow-server-production-mode</artifactId>
268+
</dependency>
269+
</dependencies>
270+
271+
<build>
272+
<plugins>
273+
<plugin>
274+
<groupId>com.vaadin</groupId>
275+
<artifactId>vaadin-maven-plugin</artifactId>
276+
<executions>
277+
<execution>
278+
<goals>
279+
<goal>build-frontend</goal>
280+
</goals>
281+
</execution>
282+
</executions>
283+
</plugin>
284+
</plugins>
285+
</build>
286+
</profile>
287+
257288
</profiles>
258-
</project>
289+
290+
</project>

0 commit comments

Comments
 (0)