Hapi Webpack Plugin 2
Webpack middleware for Hapi. Supports HMR.
Prerequisites
These packages are a peer dependency for this plugin.
- Hapi (tested on >= 17.0)
- webpack (tested on >= 4.0)
Installation
npm i -D hapi-webpack-plugin-2
Usage
You can use this plugin in two ways.
config
object
1) With const webpack = ;const HapiWebpackPlugin = ; server;
configPath
2) With const HapiWebpackPlugin = ; server;
Acknowledgement
This plugin is originally based on hapi-webpack-plugin which was in need of upgrading but seems to be abandoned. Among other issues, it is not compatible with Babel 7 and Webpack 4.
License
MIT