| 1. |
Explain Webpack. |
|
Answer» Webpack is a tool that bundles JavaScript modules, ALSO known as static module bundlers. Modules are REUSABLE chunks of code that are built from the JavaScript, node_modules, images, and CSS styles of your application, and packaged so that they can be easily added to your website. If you have a large number of files, Webpack generates a single (or a few) file that RUNS your application. When Webpack processes your application or package, it generates a dependency graph, which consists of various modules that your webapp needs in order to function as expected. Based on this graph, it then creates a new package that contains only the bare minimum files required, often only ONE or a few bundle.js files which can be easily plugged into the HTML file and used in the application. |
|