We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
For mode, the config needs to be a function: https://webpack.js.org/concepts/mode/
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
The text was updated successfully, but these errors were encountered:
I'm having the same issue. Any update on this?
Sorry, something went wrong.
I was able to just call the function like this:
.pipe(webpackStream(require('./webpack.config.js')(undefined, {}))
If you need env and argv I think you could find a way to pass them into gulp.
env
argv
No branches or pull requests
For
mode
, the config needs to be a function: https://webpack.js.org/concepts/mode/webpack.config.js:
gulpfile.js:
result:
The text was updated successfully, but these errors were encountered: