Configuring the Quarkus application to build the frontend
The first step of combining the React and Quarkus projects for a single deployment is configuring the Quarkus build process to run the frontend build and packaging tasks and account for the generated resources.
In the Maven project (pom.xml) section of Chapter 1, Bootstrapping the Project, we learned that the pom.xml
file is the main unit of work for Maven and collects all the configuration details that will be used by Maven to build the project. Let’s edit this file to add the required changes.
The following code snippet contains the changes in the pom.xml
build section related to the required configuration so that Quarkus accounts for the resources generated from the frontend build process:
<resources>
<resource>
<directory>src/main/resources</directory>
</resource>
<resource>
<directory...