In general, you can use the following experience to determine how to configure Webpack:
- Want source files added to the build process to be controlled and configured by Webpack
entry
. - To customize the location and name of the output file, configure
output
. - To customize the policy for finding dependent modules, configure
resolve
. - Want to customize the policy for parsing and converting files, configure
module
, usually configurationmodule.rules
In the Loader. - Most of the other requirements may have to be configured via Plugin
plugin
.