Return to site

ANGULAR: What is webpack?

· ngInterview,fullstack

Webpack is a tool used by an Angular CLI to create bundles for JavaScript and stylesheets.

Webpack injects these bundles into index.html file at runtime.

The following files are bundled and injected in index.html at runtime.

● inline.bundle.js

● polyfills.bundle.js

● styles.bundle.js

● vendor.bundle.js

● main.bundle.js

Webpack provides the HMR feature wchich stands for Hot Module Replacement/Reload.

That allows to see our changes without reloading the whole Angular application on the browser.