I noticed that #10 regarding Webpack 2 compatibility was an outstanding issue. As such I've made minor changes to have the package work with Webpack 2.
Specifically:
Webpack 2 and compatible middleware layers were added as dependencies.
I also propose that this version of hapi-webpack-plugin be updated to version 2.0.0 as this would be a breaking change for users who are currently using the plugin with webpack 1. The change was made to version in the package.json.
I've updated the package.json and the readme to correspond with this and give appropriate guidance to others who might choose to use this package in the future.
No changes were necessary to the plugin code itself itself. Ultimately all config options are passed on to the respective webpack middleware packages as was done previously.
I've tested the plugin in my environment and it works for me.
Note:
I've also left dev dependancies as is. A Babel 6 installation would require a different .babelrc and dev dependencies. However not knowing what environment you use yourself, I opted to leave these the same so as to (hopefully) make your acceptance of this pull request simple.
Hi there @SimonDegraeve,
I noticed that #10 regarding Webpack 2 compatibility was an outstanding issue. As such I've made minor changes to have the package work with Webpack 2.
Specifically:
No changes were necessary to the plugin code itself itself. Ultimately all config options are passed on to the respective webpack middleware packages as was done previously.
I've tested the plugin in my environment and it works for me.
Note:
Do let me know if you have any questions.