Webpack
Last updated
Was this helpful?
Last updated
Was this helpful?
It is a static module bundler for modern JavaScript applications. When webpack processes your application, it internally builds a from one or more entry points and then combines with dependencies needed as outputs
It allows developers to split their code into smaller chunks, which can be loaded on-demand when needed, improving performance.
An entry point indicates which module webpack should use to begin building out its internal .
The output property tells webpack where to emit the bundles it creates and how to name these files.
It is used to perform more advanced tasks and perform additional logic during the bundling process. as it has access to the entire compilation lifecycle and can perform actions like code optimization, asset management, and injecting environment variables.
For example: generating html file that import the link of output javascript file
It only understands JavaScript and JSON files. Loaders allow webpack to resolve other types of files and convert them into valid that can be consumed by your application and added to the dependency graph.