🚀 Big News:Socket Has Acquired Secure Annex.Learn More →
Socket
Book a DemoSign in
Socket

war-webpack-plugin

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

war-webpack-plugin

Generate a Tomcat war from your webpack build result

latest
Source
npmnpm
Version
1.0.2
Version published
Maintainers
1
Created
Source

war-webpack-plugin npmlicence

NPM registry

Generate a Tomcat war from your webpack build result!

Installation

Install with NPM

npm install --save-dev war-webpack-plugin

Usage

import WarPlugin from 'war-webpack-plugin';

...

plugins: [
        new WarPlugin({
            outputFile: './dist/test.war',
            files: ['./src/index.html'],
            html5: { 
                paths: ['/home', '/about'],
                jarUrl: 'MY_LOCAL_NEXUS_URL/urlrewritefilter-4.0.3.jar',
                description: 'My awesome web app',
                displayName: 'AwesomeApp'
            }
        })
    ]

Options

NameTypeRequiredDescription
outputFile{String}:heavy_check_mark:File location of the generated war, relative to your webpack config file.
files{Array} of {String}Optional files to include in the war, this could be your index.html.
html5{Object}Support for SPA apps using url rewitres. See [https://docs.angularjs.org/guide/$location#html5-mode](AngularJs HTML5 mode) for more details.
html5.paths{Array} of {String}Paths to rewrite to index.html.
html5.jarUrl{String}If you would like to specifiy another location for tuckey's urlrewrite jar, eg. from your Nexus repository.
html5.description{String}War application description.
html5.displayName{String}War application name.

License

MIT

FAQs

Package last updated on 30 Apr 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts