For mode, the config needs to be a function: https://webpack.js.org/concepts/mode/
webpack.config.js:
module.exports = (env, argv) => ({
...
});
gulpfile.js:
.pipe(webpackStream( require('./webpack.config.js') )
result:
[17:28:17] webpack-stream - No files given; aborting compilation