Webpack - determines why the file is included

I have a webpack configuration with some bootloaders and plugins. These loaders have some include / test / exclude rules.

However, the set of files is saved in the webpack assembly. They are not imported anywhere, which means that this is probably some bad configuration.

Is there any way to ask webpack WHY the file is included in the assembly?

+4
source share
2 answers

There are some display options that you can set when you run the web package, which can help you achieve what you want to achieve. Check them out here .

, --display-reasons, , , , . : --display-modules , , , node_modules bower_components.

, .

+3

, , :

stats: 'verbose'

webpack config. , , . stats .

+2

Source: https://habr.com/ru/post/1687601/


All Articles