Extend what Webpack can do beyond simply bundling your files.
Loaders mainly transform individual files, while plugins can interact with the entire Webpack build process. They can perform tasks such as generating HTML files, cleaning the output directory, optimizing bundles, or injecting useful information into the build.
Plugins are one of the main reasons Webpack can handle complex build workflows. Understanding how plugins connect to Webpack's build lifecycle will help you understand both common plugins and how custom build behavior can be created.
What you'll walk away knowing