Create war for single page applications for Java EE 6 compliant servers.
- Create war file without java and it's build systems
- Includes Java EE filter that always redirects to
index.html
if file does not exist. This allows routing withouthash
(#
).
yarn create spa-war <inputPath> <generated-war-name>
# outputs war size
npx create-spa-war <inputPath> <generated-war-name>
# outputs war size
- Add package to your project
npm install create-spa-war --save-dev
yarn add create-spa-war --dev
- Create script on
package.json
. Example:
scripts: {
"build": "webpack -p",
"postbuild": "create-spa-war ./dist ./my-project.war"
}