Skip to content

Instantly share code, notes, and snippets.

@Muhammad-Shafaf123
Last active February 3, 2022 11:47
Show Gist options
  • Save Muhammad-Shafaf123/638e3750b6a3352a6d66df2fcaec8c92 to your computer and use it in GitHub Desktop.
Save Muhammad-Shafaf123/638e3750b6a3352a6d66df2fcaec8c92 to your computer and use it in GitHub Desktop.

What is Webpack.

Webpack is a javascript module builder. It is used to compile a modern javascript modules. Webapack process our application. Webpack only understand javascript file and JSON file. It internally build depandency graph (depandency graph:- any time one file depants on another, webpack handle all the depandencies) from one or more bundles. that include every modules in our application.

How Webpack Work.

When webpack process our application. It start from list of module define on the command line or configuration file. And it internally builds a depandancy graph one or more entry point. Then it combine every modules and bundle the essential one.

Webpack setup.

References :- https://webpack.js.org/guides/getting-started/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment