Webpack


Webpack is an open-source JavaScript module bundler. It is made primarily for JavaScript, but it can transform front-end assets such as HTML, CSS, and images if the corresponding loaders are included. webpack takes modules with dependencies and generates static assets representing those modules.
Webpack takes the dependencies and generates a dependency graph allowing web developers to use a modular approach for their web application development purposes. It can be used from the command line, or can be configured using a config file which is named . This file is used to define rules, plugins, etc., for a project.
Node.js is required for using Webpack.
webpack provides code on demand using the moniker code splitting. The Technical Committee 39 for ECMAScript is working on standardization of a function that loads additional code: "proposal-dynamic-import".

Webpack Dev Server

Webpack also provides a built-in development server called Webpack Dev Server that can be used as an HTTP server for serving files while developing. It also provides the capability to use hot module replacement.