
Security News
Socket Releases Free Certified Patches for Critical vm2 Sandbox Escape
A critical vm2 sandbox escape can allow untrusted JavaScript to break isolation and execute commands on the host Node.js process.
war-webpack-plugin
Advanced tools
Generate a Tomcat war from your webpack build result!
npm install --save-dev war-webpack-plugin
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'
}
})
]
| Name | Type | Required | Description |
|---|---|---|---|
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. |
MIT
FAQs
Generate a Tomcat war from your webpack build result
We found that war-webpack-plugin demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Security News
A critical vm2 sandbox escape can allow untrusted JavaScript to break isolation and execute commands on the host Node.js process.

Research
Five malicious NuGet packages impersonate Chinese .NET libraries to deploy a stealer targeting browser credentials, crypto wallets, SSH keys, and local files.

Security News
pnpm 11 turns on a 1-day Minimum Release Age and blocks exotic subdeps by default, adding safeguards against fast-moving supply chain attacks.