Webpack only understands JavaScript and JSON files. Loaders allow webpack to process other types of files and convert them into valid modules that can be consumed by your application and added to the dependency graph.
At a high level, loaders have two properties in your webpack configuration:
- The test property identifies which file or files should be transformed.
 - The use property indicates which loader should be used to do the transforming.