Original translation, please indicate the source when reprinting.
Original address: https://webpack.js.org/concepts/dependency-graph/
Anytime a file depends on another file, webpack treats it as a dependency. This allows webpack to handle non-code assets, like images or fonts, and also serve them as dependencies in your app.
When webpack processes your application, it starts with a list of modules defined on the command line or in its configuration file. From these entry points, webpack recursively creates a dependency graph that contains all the modules your application needs, and then bundles those applications into several bundles, often just one, that are loaded in your browser.
-- End --