javascript webpack XX 隐藏模块是什么意思
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/28858176/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
What does webpack mean by XX hidden modules
提问by Christian Schlensker
I've been playing with webpack and during the build I see it output:
+ 27 hidden modules
. What does it mean by this? Is it detecting global constants that I'm using without requiring them?
我一直在玩 webpack,在构建过程中我看到它输出:
+ 27 hidden modules
. 这是什么意思?它是否在不需要它们的情况下检测我正在使用的全局常量?
回答by Johannes Ewald
Webpack hides modules coming from folders like ["node_modules", "bower_components", "jam", "components"]
in your console output by default. This helps you to focus on your modulesinstead on your dependencies.
["node_modules", "bower_components", "jam", "components"]
默认情况下,Webpack 会隐藏来自控制台输出等文件夹中的模块。这有助于您专注于您的模块而不是您的依赖项。
You can display them by using the --display-modules
argument.
您可以使用--display-modules
参数显示它们。