Webpack

Webpack
Developer(s) Tobias Koppers, Sean Larkin, Johannes Ewald, Juho Vepsäläinen, Kees Kluskens and Webpack contributors
Initial release Mar 10, 2012 (Mar 10, 2012)
Stable release
4.20.2 / September 25, 2018 (2018-09-25)[1]
Repository github.com/webpack/webpack
Written in JavaScript
Operating system Cross-platform
License MIT License
Website webpack.js.org

Webpack is an open-source JavaScript module bundler. Its main purpose is to bundle JavaScript files for usage in a browser, yet it is also capable of transforming, bundling, or packaging just about any resource or asset. Webpack takes modules with dependencies and generates static assets representing those modules.[2] It’s a module bundler primarily for JavaScript, but it can transform front-end assets like HTML, CSS, even images if the corresponding plugins are included.

It takes the dependencies and generates a dependency graph allowing web developers to use a modular approach for their web application development purposes. The bundler can be used from the command line, or can be configured using a config file which is named webpack.config.js.[3]

Node.js is required for installing webpack. Another important aspect about webpack is that it is highly extensible by the use of loaders. Loaders allow developers to write custom tasks that they want to perform when bundling files together.

Webpack provides code on demand using the moniker code splitting. The Technical Committee 39 for ECMAScript is working on standardization of a function that loads additional code: proposal-dynamic-import.

See also

References

  1. "Releases · webpack/webpack". Retrieved 2018-09-25.
  2. "What is webpack". GitHub. Retrieved 25 Feb 2018.
  3. "Webpack: An Introduction - Wisdom Geek". Wisdom Geek. 2017-01-12. Retrieved 2017-01-16.
This article is issued from Wikipedia. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.