Webpack

Print Print
Reading time 3:48

webpack
Webpack.svg
Developer(s)Tobias Koppers, Sean Larkin, Johannes Ewald, Juho Vepsäläinen, Kees Kluskens, and Webpack contributors
Initial release19 February 2014; 7 years ago (2014-02-19)[1]
Stable release
5.37.1 / 19 May 2021; 25 days ago (2021-05-19)[2]
Repositorygithub.com/webpack/webpack
Written inJavaScript
Operating systemLinux, macOS, Windows
PlatformNode.js
LicenseMIT License[3][4]
Websitewebpack.js.org

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

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

webpack dev server

webpack also provides a built-in development server called webpack dev server that can be used as an HTTP server for serving files while developing. It also provides the capability to use hot module replacement (HMR).

See also

  • Browserify
  • Grunt (software)
  • Gulp.js

References

  1. ^ "Release Date of Version 1.0.0". Retrieved 2020-12-31.
  2. ^ "Releases · webpack/webpack". Retrieved 2020-12-31.
  3. ^ "LICENSE file on GitHub". Retrieved 2020-12-31.
  4. ^ "License field from webpack - npm". Retrieved 2020-12-31.
  5. ^ "Web Performance Optimization with webpack". Google Inc. Retrieved 16 Oct 2018.
  6. ^ "A Beginner's Guide to webpack 4 and Module Bundling". SitePoint. Retrieved 16 Oct 2018.
  7. ^ "Webpack 4.0 Release Brings Simplified Configuration, WebAssembly Support, and Big Performance Boost". InfoQ. Retrieved 16 Oct 2018.
  8. ^ "High-performance webpack config for front-end delivery". Codementor. Retrieved 16 Oct 2018.
  9. ^ "Webpack 3 to Webpack 4: tips on migrating" CodiLime. Retrieved on 25 Jun 2019.
  10. ^ "What is webpack". SurviveJS. Retrieved 16 Oct 2018.
  11. ^ "What is webpack". GitHub. Retrieved 25 Feb 2018.
  12. ^ import() proposal for JavaScript, Ecma International, Technical Committee 39 – via GitHub

External links

By: Wikipedia.org
Edited: 2021-06-18 12:37:01
Source: Wikipedia.org