Example create WAR file for react app Installation npm install . // or yarn install 1. Installing dependencies for react app cd src npm install . // or yarn install 2. build react app npm run build // or yarn build 3. create war file from ./src/build directory cd ../ npm run build // or yarn build