Features of Webpack
There are many features of webpack:
- Entry: We all know webpack makes a dependency graph and the starting of this graph is known as the entry or entry point. From the starting point of the dependency graph, it will follow all the dependencies to know what it has to bundle.
- Output: Output tells webpack where to put the bundles that it had made and what will be its format.
- Loaders: Loaders convert different types of files like images and CSS into a module before adding them to the dependency graph.
- Plugins: Plugins provide functionality. It can provide much functionality like printing something on running the webpack, minifying, optimization of bundles, etc.
What are the advantages of using Webpack ?
Webpack is a famous module builder that we extensively use during our Web Development Journey. It is used for those applications that use Javascript.
Before moving forward, we should note that Webpack only understands JavaScript and JSON. So it converts other frontend files like HTML and CSS into modules with the help of a loader and thus provides a complete frontend solution to us. It internally makes a dependency graph while processing any application.
Table of Content
- Features of Webpack
- Steps to Install Webpack
- Advantages of using WebPack
- Application of Webpack
Contact Us