Webpack

From Wikipedia, the free encyclopedia

Template:Short description

Page Module:Infobox/styles.css has no content.

webpack
[[Programmer|DeveloperTemplate:Pluralize from text]]Tobias Koppers, Sean Larkin, Johannes Ewald, Juho Vepsäläinen, Kees Kluskens, Even Stensberg and webpack contributors
Initial release19 February 2014; 12 years ago (2014-02-19)[1]
Template:Infobox software/simple
Written inJavaScript
EnginePage Template:Plainlist/styles.css has no content.Template:EditAtWikidata
Operating systemLinux, macOS, Windows
PlatformNode.js
LicenseMIT License[2][3]
WebsiteLua error in package.lua at line 80: module 'Module:If preview' not found.
Repositorygithub.com/webpack/webpack

Script error: No such module "Check for conflicting parameters".

webpack is a free and open-source module bundler for JavaScript.[4][5][6][7] 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.[8] webpack takes modules with dependencies and generates static assets representing those modules.[9]

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 configuration file which is named webpack.config.js. This file defines 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 to use webpack.

webpack provides code on demand using the moniker code splitting. Two similar techniques are supported by webpack when it comes to dynamic code splitting. The first and recommended approach is to use the import() syntax that conforms to the ECMAScript proposal for dynamic imports. The legacy, webpack-specific approach is to use require.ensure.[10]

webpack development server

webpack also provides a built-in development server, 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), which updates code on a webpage without requiring the developer to reload the page.

See also

Lua error in mw.title.lua at line 404: bad argument #2 to 'title.new' (unrecognized namespace name 'Portal').

References

Page Template:Reflist/styles.css has no content.

  1. ^ Page Module:Citation/CS1/styles.css has no content."Release Date of Version 1.0.0". Retrieved 2020-12-31.
  2. ^ Page Module:Citation/CS1/styles.css has no content."LICENSE file on GitHub". Retrieved 2020-12-31.
  3. ^ Page Module:Citation/CS1/styles.css has no content."License field from webpack - npm". Retrieved 2020-12-31.
  4. ^ Page Module:Citation/CS1/styles.css has no content."Web Performance Optimization with webpack". Google Inc. Retrieved 16 Oct 2018.
  5. ^ Page Module:Citation/CS1/styles.css has no content."A Beginner's Guide to webpack 4 and Module Bundling". SitePoint. Retrieved 16 Oct 2018.
  6. ^ Page Module:Citation/CS1/styles.css has no content."Webpack 4.0 Release Brings Simplified Configuration, WebAssembly Support, and Big Performance Boost". InfoQ. Retrieved 16 Oct 2018.
  7. ^ Page Module:Citation/CS1/styles.css has no content."High-performance webpack config for front-end delivery". Codementor. Archived from the original on 27 February 2021. Retrieved 16 Oct 2018.
  8. ^ Page Module:Citation/CS1/styles.css has no content."What is webpack". SurviveJS. Retrieved 16 Oct 2018.
  9. ^ Page Module:Citation/CS1/styles.css has no content."What is webpack". GitHub. Retrieved 25 Feb 2018.
  10. ^ Page Module:Citation/CS1/styles.css has no content."Dynamic imports". webpack. Retrieved 6 Jun 2022.
  • Lua error in Module:Official_website at line 94: attempt to index field 'wikibase' (a nil value).

Lua error in package.lua at line 80: module 'Module:Navbox/configuration' not found. Lua error in package.lua at line 80: module 'Module:Navbox/configuration' not found. Lua error in package.lua at line 80: module 'Module:Navbox/configuration' not found.