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 Webpackentry.
  • To customize the location and name of the output file, configureoutput.
  • To customize the policy for finding dependent modules, configureresolve.
  • Want to customize the policy for parsing and converting files, configuremodule, usually configurationmodule.rulesIn the Loader.
  • Most of the other requirements may have to be configured via Pluginplugin.