Webpack Vertx Plugin
This plugin allows you to extract nashorn modules to your node_modules work directory and on compilation success package your application as a runnable jar.
WARNING
This plugin expects that your already have Apache Maven installed in your system since will interact with it in order to perform its tasks.
Installation
npm install --save-dev webpack-vertx-plugin
Setup
In webpack.config.js
:
const WebpackVertxPlugin = ; moduleexports = ... ... plugins: extractOnly: false ...
Example
Insert into your webpack.config.js:
const WebpackVertxPlugin = ;const path = ; var plugins = ; plugins; var config = entry: app: path output: path: path // regular webpack filename: 'bundle.js' devServer: contentBase: path // dev server plugins: plugins module: loaders: test: /\.js$/ loaders: 'babel' test: /\.scss$/ loader: 'style!css!scss?' test: /\.html$/ loader: 'html-loader' moduleexports = config;
Config
extractOnly
: boolean to only extract resources tonode_modules
(do not executemvn package
in the end of the build). Default: falseverbose
: boolean to display the maven output. Default: falsewatchPattern
: a ant pattern to pass to vertx when watching for file changes, Default: src/main/resources/**/*verticle
: the name of the main verticle.