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