https://github.com/danielbayerlein/hapi-webpack-middleware
@webpack middleware for @hapijs
https://github.com/danielbayerlein/hapi-webpack-middleware
hapi middleware webpack webpack-dev-server webpack-hot-middleware webpack-plugin
Last synced: 11 months ago
JSON representation
@webpack middleware for @hapijs
- Host: GitHub
- URL: https://github.com/danielbayerlein/hapi-webpack-middleware
- Owner: danielbayerlein
- License: mit
- Created: 2016-06-21T18:11:31.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2019-09-18T18:16:00.000Z (over 6 years ago)
- Last Synced: 2025-03-24T18:52:27.351Z (11 months ago)
- Topics: hapi, middleware, webpack, webpack-dev-server, webpack-hot-middleware, webpack-plugin
- Language: JavaScript
- Homepage:
- Size: 95.7 KB
- Stars: 4
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# hapi-webpack-middleware
[](https://badge.fury.io/js/%40danielbayerlein%2Fhapi-webpack-middleware)
[](https://travis-ci.org/danielbayerlein/hapi-webpack-middleware)
[](https://standardjs.com)
[](https://greenkeeper.io/)
**hapi-webpack-middleware** is a [webpack](https://github.com/webpack/webpack) middleware for [hapi.js](https://github.com/hapijs/hapi).
:warning: Use this middleware only in development!
Full support for:
* [webpack](https://webpack.js.org)
* [webpack-dev-middleware](https://github.com/webpack/webpack-dev-middleware)
* [webpack-hot-middleware](https://github.com/webpack-contrib/webpack-hot-middleware)
## Installation
```bash
npm install webpack webpack-dev-middleware webpack-hot-middleware @danielbayerlein/hapi-webpack-middleware --save-dev
```
## Usage
```javascript
server.register({
register: require('@danielbayerlein/hapi-webpack-middleware'),
options: {
webpack: {},
webpackDev: {},
webpackHot: {}
}
}, (err) => {
if (err) {
throw err;
}
});
```
## Configuration
* [webpack](https://webpack.js.org/concepts/configuration/)
* [webpackDev](https://github.com/webpack/webpack-dev-middleware#usage)
* [webpackHot](https://github.com/webpack-contrib/webpack-hot-middleware/blob/master/middleware.js#L8-L10)
## Contributing
1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new [Pull Request](../../pull/new/master)
## Copyright
Copyright (c) 2016-present Daniel Bayerlein. See [LICENSE](./LICENSE.md) for details.