webpack3 node.js api – multi-compiler callback doesn’t work

Do you want to request a feature or report a bug?
bug

What is the current behavior?
Using webpack3 node.js api and passing multiple config files, callback will not be triggered.

If the current behavior is a bug, please provide the steps to reproduce.
var webpack = require(“webpack”);
var config1 = require(“webpack.config1.js”);
var config2 = require(“webpack.config2.js”);
var compilers = webpack([config1, config2]);
compilers.run(function(err, stats) {
console.log(“Yeahhhhh”);
});

What is the expected behavior?
Passing multiple config files, callback should be triggered.

If this is a feature request, what is motivation or use case for changing the behavior?
N/A

Please mention other relevant information such as the browser version, Node.js version, webpack version, and Operating System.
Node.js v6.12.0
webpack v3.11.0
OS windows 7

Author: Fantashit

1 thought on “webpack3 node.js api – multi-compiler callback doesn’t work

Comments are closed.