Official website (https://webpack.github.io/)
Key facts
- Software.name
- Webpack
- Software.logo
- Webpack.svg
- Software.developer
- Tobias Koppers, Sean Larkin, Johannes Ewald, Juho Vepsäläinen, Kees Kluskens, Even Stensberg and Webpack contributors
- Software.ver layout
- simple
- Software.programming language
- JavaScript
- Software.operating system
- Linux, macOS, Windows
- Software.platform
- Node.js
- Software.license
- MIT License
via Wikipedia infobox
Official website
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.
webpack.github.io →Link to the official site · 2,415 chars · not written by Vinony
Source code
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
Article · 中文
Webpack 是一個開源的前端打包工具。Webpack 提供了前端開發缺乏的模組化開發方式,將各種靜態資源視為模組,並從它生成優化過的程式碼。 Webpack可以從終端、或是更改 webpack.config.js 來設定各項功能。 要使用 Webpack 前須先安裝 Node.js。Webpack 其中一個特性是使用載入器來將資源轉化成模組。開發者可以自訂載入器的順序、格式來因應專案的需求。
Abstract from DBpedia / Wikipedia · CC BY-SA