Consider using: - https://github.com/SimonDegraeve/hapi-webpack-plugin instead of manual plugin setup