We’re doing exactly that by having a multi-project build, with two subprojects, backend and frontend.
In the frontend, we apply the base plugin and the com.moowork.node plugin. Running an ng build simply consists in adding "build": "ng build --prod" in the scripts section of the package.json file, and using
In the backend gradle build, we use the spring-boot-gradle-plugin, and simply customize the jar task so that it includes the files generated by the frontend build:
jar {
dependsOn ':frontend:npm_run_build'
into('static') {
from "${project(':frontend').projectDir}/dist"
}
}
Same Configuration I’m doing now, front end angular 5 and backend is springboot java application.
@jnizet, Here, I have the configuration you have mentioned. and I’m trying to build a single war file with both front and backend together, that war file I have to deploy it to external tomcat.