How to debug webpack build performance?

I am trying to determine what my webpack has been taking for so long. I'm trying to find any logging options or debugging options, so webpack will log information about what it is doing ... I looked around and saw a couple of things, such as the noInfo: false option, but it does nothing for me ...

I am using node.js api. Here is an example:

var compiler = webpack(config) compiler.run(function(err, stats) { if (err) { console.error(err) return } else { fs.writeFileSync(path.join(root, 'webpack', 'stats.'+projectName+'.json'), stats.toJson(), 'utf8') console.log("done: stats."+projectName+'.json') } }); 
+8
webpack
source share

No one has answered this question yet.

See related questions:

1203
NPM vs. Bower vs. Browserify vs. Gulp vs. Grunt vs. Webpack
284
Passing environment-dependent variables to webpack
282
Managing jQuery plugin dependency in webpack
211
How to create a miniature and uncompressed package with webpack?
182
How to copy static files to create a directory using Webpack?
64
Configure webpack to enable browser debugging
one
Shaking a tree does not work with Babel loader in webpack 4
one
How to “require” an XML file (downloaded via a web package) to read XML content in JavaScript
0
Using webpack-dev-server 3 with parallel webpack
0
how to debug Apollo host server with webpack

All Articles