webpack / webpack

A bundler for javascript and friends. Packs many modules into a few bundled assets. Code Splitting allows for loading parts of the application on demand. Through "loaders", modules can be CommonJs, AMD, ES6 modules, CSS, Images, JSON, Coffeescript, LESS, ... and your custom stuff.
https://webpack.js.org
MIT License
64.68k stars 8.81k forks source link

webpack@2.2.0-rc.4: maxModules option not working #3946

Closed sanex3339 closed 7 years ago

sanex3339 commented 7 years ago

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

Bug.

What is the current behavior?

stats.modules: false and stats.maxModules: 0 doesn't work.

If the current behavior is a bug, please provide the steps to reproduce.

webpack.config.js https://github.com/javascript-obfuscator/javascript-obfuscator/blob/master/webpack.config.js

What is the expected behavior?

stats.modules: false and stats.maxModules: 0 should hide modules output to console

Please mention other relevant information such as the browser version, Node.js version, Operating System and programming language.

webpack@2.2.0-rc.4 node@6.0.0

With stats.maxModules: 0 webpack still display 15 modules in terminal. image

With rc.3 option worked as expected.

sokra commented 7 years ago

If you want to hide the modules try stats.modules: false. I investigate why maxModules: 0 isn't working.

It looks like you just deleted our lovely crafted issue template. It was there for good reasons. Please help us solving your issue by answering the questions asked in this template. I'm closing this. Please either update the issue with the template and reopen, or open a new issue.

sanex3339 commented 7 years ago

stats.modules: false also doesn't work

image

jbruni commented 7 years ago

What happens if you set showChunkModules to false?

sanex3339 commented 7 years ago

image

sanex3339 commented 7 years ago

image

jbruni commented 7 years ago

Hmmm... none of the stats options from webpack.config.js are arriving here at Stats.js...

jbruni commented 7 years ago

Oh, yes! This is simply killing the stats options informed at webpack.config.js: https://github.com/webpack/webpack/blob/v2.2.0-rc.4/bin/webpack.js#L180-L181

sanex3339 commented 7 years ago

thank you!

saurgoel commented 7 years ago

Facing the same issue on webpack 2.4.1

fsarron-nexway commented 6 years ago

Webpack 4.5.0 same issue

cesargdm commented 6 years ago

Webpack 4.8.3 same issue

sokra commented 6 years ago

Please open a new issue