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