Skip to content

maasdi/react-assets-maven-plugin-sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React Assets Maven Plugin Sample

This sample project shows how to use React Assets Maven Plugin, this project use spring-boot and Thymeleaf, but the plugin should work with any Maven Project.

Refer to pom.xml to see how it's done.

How to run

  • Just ./mvnw spring-boot:run maven will run npm install && npm run build, copy react build assets to ${project.build.directory}/classes/public/, process ${project.basedir}/src/main/resources/templates/home.html and start the application
  • Open http://localhost:8080/home the page is render correctly with correct react assets

About

Example React Assets Maven Plugin for Spring Boot

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published