April 2018
Intermediate to advanced
298 pages
6h 34m
English
One of the key strengths of Webpack is that you don't need to supply it with a list of modules that need to be bundled. Once you supply an entry point in the Webpack configuration, it can figure out which modules your application needs, and will bundle them accordingly. Needless to say, this is a complex task that Webpack is performing for you and needs all the help it can get.
For example, part of the resolve configuration is telling Webpack which file extensions to consider, for example, .js or .jsx. You also want to tell Webpack where to look for package modules. These are modules that you didn't write and aren't part of your application. These are npm packages that are typically found in the node_modules directory ...