Webpack is a static module bundler tool that is designed to bundle JavaScript files, to be used in a browser. Modules are reusable code chunks built from JavaScript, external libraries in node_modules, CSS styles, images, and other assets. They are packaged and can be easily added to a website. Webpack generates a single or a few files that can run your application from a large number of original files. Webpack puts all files, assets, code, images, fonts, etc. in a dependency graph. Based on this graph, a new package is created that contains only the bare minimum files required that can be easily embedded into the HTML file and used in the application.