Official website (https://webpack.github.io/)
Webpack is a free and open-source module bundler for JavaScript. 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. Webpack takes modules with dependencies and generates static assets representing those modules.
via Wikipedia infobox
webpack
webpack is a 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 is a 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.
~2 min read
Webpack is a free and open-source module bundler for JavaScript. 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. Webpack takes modules with dependencies and generates static assets representing those modules.
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.)
Link to the official site · 2,415 chars · not written by Vinony
TL;DR Bundles ES Modules, CommonJS, and AMD modules (even combined). Can create a single bundle or multiple chunks that are asynchronously loaded at runtime (to reduce initial loading time). Dependencies are resolved during compilation, reducing the runtime size. Loaders can preprocess files while compiling, e.g. TypeScript to JavaScript, Handlebars strings to compiled functions, images to Base64, etc. Highly modular plugin system to do whatever else your application requires. Webpack supports all browsers that are ES5-compliant (IE8 and below are not supported). Webpack also needs Promise for import() and require.ensure() . If you want to support older browsers, you will need to load a polyfill before using these expressions. Webpack has a rich plugin interface. Most of the features within webpack itself use this plugin interface. This makes webpack very flexible . Name Status Install Size Description : : : : : : : [mini-css-extract-plugin][mini-css] ![mini-css-npm] ![mini-css-size] Extracts CSS into separate files. It creates a CSS file per JS file which contains CSS. [compression-webpack-plugin][compression] ![compression-npm] ![compression-size] Prepares compressed versions of assets to serve them with Content-Encoding [html-bundler-webpack-plugin][bundler] ![bundler-npm] ![bundler-size] Renders a template (EJS, Handlebars, Pug) with referenced source asset files into HTML. [html-webpack-plugin][html-plugin] ![html-plugin-npm] ![html-plugin-size] Simplifies creation of HTML files ( index.html ) to serve your bundles [pug-plugin][pug-plugin] ![pug-plugin-npm] ![pug-plugin-size] Renders Pug files to HTML, extracts JS and CSS from sources specified directly in Pug. Webpack enables the use of loaders to preprocess files. This allows you to bundle any static resource way beyond JavaScript. You can easily write your own loaders using Node.js. Loaders are activated by using loadername! prefixes in require() statements, or are automatically applied via regex from your webpack configuration. Name Status Install Size Description : : : : : : : ![babel-npm] ![babel-size] Loads ES2015+ code and transpiles to ES5 using Babel ![type-npm] ![type-size] Loads TypeScript like JavaScript ![coffee-npm] ![coffee-size] Loads CoffeeScript like JavaScript Name Status Install Size Description : : : : : : : ![html-npm] ![html-size] Exports HTML as string, requires references to static resources ![pug-npm] ![pug-size] Compiles Pug to a function or HTML string, useful for use with Vue, React, Angular ![md-npm] ![md-size] Compiles Markdown to HTML ![posthtml-npm] ![posthtml-size] Loads and transforms a HTML file using PostHTML ![hbs-npm] ![hbs-size] Compiles Handlebars to HTML Name Status Install Size Description : : : : : : : ![style-npm] ![style-size] Add exports of a module as style to DOM ![css-npm] ![css-size] Loads CSS file with resolved imports and returns CSS code ![less-npm] ![less-size] Loads and compiles a LESS file ![sass-npm] ![sass-size] Loads and compiles a Sass/SCSS file ![stylus-npm] ![stylus-size] Loads and compiles a Stylus file ![postcss-npm] ![postcss-size] Loads and transforms a CSS/SSS file using PostCSS Name Status Install Size Description : : : : : : : ![vue-npm] ![vue-size] Loads and compiles Vue Components ![polymer-npm] ![polymer-size] Process HTML & CSS with preprocessor of choice and require() Web Components like first-class modules ![angular-npm] ![angular-size] Loads and compiles Angular 2 Components ![riot-npm] ![riot-size] Riot official webpack loader ![svelte-npm] ![svelte-size] Official Svelte loader Webpack uses async I/O and has multiple caching levels. This makes webpack fast and incredibly fast on incremental compilations. Webpack supports ES2015+, CommonJS and AMD modules out of the box . It performs clever static analysis on the AST of your code. It even has an evaluation engine to evaluate simple expressions. This allows you to support most existing libraries out of the box. Webpack allows you to s
Excerpt from the source-code README · 80,497 chars · not written by Vinony
via Wikidata · CC0
via Wikidata sitelinks · CC0
Discovered by embedding cosine similarity (sentence-transformers MiniLM, 384-dim).