Skip to content

Commit e3324ab

Browse files
committed
Add progress bar in dev-server
webpack no longer applies the ProgressPlugin for WDS, so we'll need to apply it ourselves. Fixes #609
1 parent 5b41c5b commit e3324ab

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

bin/webpack-dev-server.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,15 @@ function processOptions(wpOpt) {
260260
});
261261
}
262262

263-
new Server(webpack(wpOpt), options).listen(options.port, options.host, function(err) {
263+
var compiler = webpack(wpOpt);
264+
265+
if(argv["progress"]) {
266+
compiler.apply(new webpack.ProgressPlugin({
267+
profile: argv["profile"]
268+
}));
269+
}
270+
271+
new Server(compiler, options).listen(options.port, options.host, function(err) {
264272
if(err) throw err;
265273

266274
var uri = protocol + "://" + options.host + ":" + options.port + "/";

0 commit comments

Comments
 (0)