Webpack

From Wikipedia, the free encyclopedia
Jump to navigation Jump to search
webpack
Webpack.png
Developer(s)Tobias Koppers, Sean Larkin, Johannes Ewald, Juho Vepsäläinen, Kees Kluskens and webpack contributors
Initial releaseMarch 10, 2012; 7 years ago (2012-03-10)
Stable release
4.35.2 / July 1, 2019; 6 months ago (2019-07-01)[1]
Repository Edit this at Wikidata
Written inJavaScript
Operating systemCross-platform
LicenseMIT License
Websitewebpack.js.org

webpack is an open-source JavaScript module bundler.[2][3][4][5][6] It is a module bundler primarily for JavaScript, but it can transform front-end assets like HTML, CSS, and images if the corresponding loaders are included.[7] webpack takes modules with dependencies and generates static assets representing those modules.[8]

webpack takes the dependencies and generates a dependency graph allowing web developers to use a modular approach for their web application development purposes. It can be used from the command line, or can be configured using a config file which is named webpack.config.js. This file is used to define rules, plugins, etc., for a project. (webpack is highly extensible via rules which allow developers to write custom tasks that they want to perform when bundling files together.)

Node.js is required for using webpack.

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".[9]

webpack Dev Server[edit]

webpack also provides a built in development server called webpack Dev Server that can be used as a HTTP server for serving files while developing. It also provides the capability to use hot module replacement.

See also[edit]

References[edit]

  1. ^ "Releases · webpack/webpack". Retrieved 2019-01-20.
  2. ^ "Web Performance Optimization with webpack". Google Developers. Retrieved 16 Oct 2018.
  3. ^ "A Beginner's Guide to webpack 4 and Module Bundling". SitePoint. Retrieved 16 Oct 2018.
  4. ^ "Webpack 4.0 Release Brings Simplified Configuration, WebAssembly Support, and Big Performance Boost". InfoQ. Retrieved 16 Oct 2018.
  5. ^ "High-performance webpack config for front-end delivery". Codementor. Retrieved 16 Oct 2018.
  6. ^ "webpack 3 to webpack 4: tips on migrating" CodiLime. Retrieved on 25 Jun 2019.
  7. ^ "What is Webpack". SurviveJS. Retrieved 16 Oct 2018.
  8. ^ "What is webpack". GitHub. Retrieved 25 Feb 2018.
  9. ^ import() proposal for JavaScript, Ecma International, Technical Committee 39 – via GitHub
  10. ^ "Browserify". browserify.org. Retrieved 2020-01-21.

External links[edit]