webpack/webpack
原文摘要
A bundler for javascript and friends. Packs many modules into a few bundled assets. Code Splitting allows for loading parts of the application on demand. Through "loaders", modules can be CommonJs, AMD, ES6 modules, CSS, Images, JSON, Coffeescript, LESS, ... and your custom stuff. 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. Table of Contents Install Introduction Concepts Contributing Support Current project members TSC (Technical Steering Committee) Core Collaborators Sponsoring Premium Partners Gold Sponsors Silver Sponsors Bronze Sponsors Backers Special Thanks Install Install with npm: npm install --save-dev webpack Install with yarn: yarn add webpack --dev Introduction Webpack is a bundler for modules. The 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. TL;DR Bundles ES Modules , CommonJS , and AMD modules (even combined). Can create a single bundle or multiple chunks that are asynchronously loaded at runt…