跳转到主要内容
SEO Title

A curated list of awesome webpack resources, libraries, tools and applications. It is inspired by the awesome list. Feel free to improve this list by contributing.

Webpack Ecosystem

Remember to Cast your vote for upcoming Webpack features!

Support Webpack

Community

Twitter

People passionate about Webpack (In no particular order)

Libraries

Loaders

File Type

  • HTML Loader: HTML loader module for Webpack. -- MaintainerWebpack Team Github
  • Responsive Loader: Loader for responsive images. -- MaintainerJeremy Stucki Github
  • SVG Url Loader: Loader which loads SVG file as utf-8 encoded Url. -- MaintainerHovhannes Babayan Github
  • mermaid Loadermermaid loader module (diagrams) for Webpack. -- MaintainerPaul Musso Github
  • wasm loader: wasm binary loader module for Webpack. -- MaintainerArthur Buldauskas Github
  • Imagemin Loader/Plugin: Image minimizing loader + plugin for webpack. -- Maintaineritgalaxy inc. Github
  • Bin Exec Loader: Pipe any file through any binary. -- MaintainerRafael Milewski Github
  • GraphQL Loader.graphql document loader. -- MaintainerStephen Wan Github

Component & Template

  • Angular2 Template Loader: Inlines html and style's in Angular2 components. -- MaintainerSean Larkin Github Twitter
  • Handlebars Loader: A handlebars template loader for Webpack. -- MaintainerPaul Carduner Github Twitter
  • Vue Loader: Webpack loader for Vue.js components. -- MaintainerVuejs Team Github Twitter
  • SVG React Loader - Webpack SVG to React Component Loader. -- MaintainerJerry Hamlet Github Twitter
  • Underscore Loader - Underscore and Lodash template loader. -- MaintainerEmmanuel Antico Github Twitter
  • ngTemplate Loader - Angular1 Template Loader. -- MaintainerToby Rahilly Github
  • ngInlineStylesLoader: Optimizes inlined css of angular components. -- MaintainerSeverin Friede Github
  • Markup-inline Loader Inline SVGs to HTML -- MaintainerZhicheng Wang Github
  • Polymer Loader - Loader for Polymer elements. -- MaintainersRob Dodson Github - Chad Killingsworth Github - Bryan Coulter Github
  • Tag Loader - Loader for Riot tag files. -- MaintainerRiot Team Github Twitter
  • Twig Loader - Twig template loader. -- MaintainerZimmo.be Team Github
  • Auto ngTemplate Loader: Autodetect Angular 1 templates and load them. -- MaintainerYash Kulshrestha Github
  • Pug Loader - Pug template loader (formerly Jade). -- MaintainerPug Team Github
  • Simple Nunjucks Loader - Nunjucks template loader. -- Maintainerogonkov Github

Styles

  • Style Loader: Style loader module for Webpack. -- MaintainerWebpack Team Github
  • PostCSS Loader: PostCSS loader for Webpack. -- MaintainerPostCSS Team Github Twitter
  • CSS Loader: CSS loader module for Webpack. -- MaintainerWebpack Team Github
  • SASS Loader: SASS loader for Webpack. -- MaintainerJorik Tangelder Github Twitter
  • Less Loader: Less loader module for Webpack. -- MaintainerWebpack Team Github
  • Stylus Loader: A stylus loader for webpack. -- MaintainerKyle Robinson Young Github Twitter
  • Isomorphic Style Loader: Isomorphic CSS style loader for Webpack. -- MaintainerKriasoft Team Github Twitter
  • Minify CSS-in-JS Loader: RegExp-based minify CSS-in-JS loader for Webpack, don't need babel. -- MaintainerZack Young Github Twitter
  • SASS Resources Loader: Globally import SASS resources (variables, mixins, etc.). -- MaintainerShakaCode Github Twitter

Language & Framework

  • TS Loader: TypeScript loader for webpack. -- MaintainerTypeStrong Team Github
  • Coffee Loader: Coffee loader module for Webpack. -- MaintainerWebpack Team Github
  • Bootstrap Loader: Load Bootstrap styles in your Webpack bundle. -- MaintainerShakaCode Team Github Twitter
  • PostHTML Loader: PostHTML loader for Webpack. -- MaintainerPostHTML Team Github Twitter
  • ELM Loader: Webpack loader for the Elm programming language. -- MaintainerRichard Feldman Github Twitter
  • Fengari Loader: Run Lua code using Fengari. -- MaintainerDaurnimator Github Twitter

Utility

  • Babel Loader: Webpack plugin for Babel. -- MaintainerBabel Team Github Twitter
  • Worker Loader: Worker loader module for Webpack. -- MaintainerWebpack Team Github
  • Resolve URL Loader: Resolves relative paths in url() statements. -- MaintainerBen Holloway Github
  • Import Loader: Imports loader module for Webpack. -- MaintainerWebpack Team Github
  • SourceMap Loader: Extract sourceMappingURL comments from modules. -- MaintainerWebpack Team Github
  • Combine Loader - Converts a loaders array into a single loader string. -- MaintainerJames Friend Github
  • Icon Font Loader - Converts svgs into font icons in CSS. -- MaintainerForrest R. Zhao Github
  • Icons Loader - Generates an iconfont from SVG dependencies. -- MaintainerMike Vercoelen Github
  • Modernizr Loader - Get your modernizr build bundled with webpack. -- MaintainerPeerigon Devs Github
  • ngRouter Loader - AOT capable NgModule lazy loading using angular router -- MaintainerShlomi Assaf Github Twitter
  • Lingui Loader - Compile message catalogs on the fly for jsLingui, i18n library -- MaintainerTomáš Ehrlich Github Twitter
  • Shell Loader - Run an arbitrary shell script on source files. -- MaintainerJo Sprague Github
  • EXIF Loader - Extract EXIF- & IPTC-data from your JPGs during build-time. -- MaintainerEmanuel Kluge Github Twitter
  • esbuild Loader - Blazing fast alternative to babel-loader, ts-loader, and Terser powered by esbuild. -- MaintainerHiroki Osame Github Twitter

Testing

Integration Libraries

  • Dotenv Webpack: Compiles environment variables into your bundle via dotenv. -- MaintainerMatthew Steele Github Twitter
  • Terse Webpack - Webpack simplified in a fluent API with presets. -- MaintainerEric Clemmons Github Twitter
  • SystemJS Webpack - Webpack bundling for SystemJS. -- MaintainerGuy Bedford Github Twitter
  • Gulp Webpack Stream - Run webpack through a stream interface. -- MaintainerKyle Robinson Young Github Twitter
  • Webpack Blocks - Configure webpack using functional feature blocks. -- MaintainerAndy Wermke Github Twitter
  • Webpacker - Official webpack gem for integration into ruby on rails projects. -- MaintainerRails Github
  • WebpackAspnetMiddleware - Development middleware for ASP.NET 5. -- MaintainerFrank Wallis Github
  • Consul Key/Value Webpack: Compiles environment variables into your bundle via Consul KV-store. -- MaintainerMarlon Maxwel Github

Webpack Plugins

  • DefinePlugin: Create global constants which can be configured at compile time. -- MaintainerWebpack Team Github
  • Compression Plugin: Prepare assets to serve with Content-Encoding. -- MaintainerWebpack Team Github
  • Offline Plugin: Offline plugin (ServiceWorker, AppCache) for Webpack. -- MaintainerArthur Stolyar Github Twitter
  • Rewire Plugin: Dependency injection for Webpack bundles. -- MaintainerJohannes Ewald Github Twitter
  • HTML Webpack Plugin: Simplifies creation of HTML files. -- MaintainerJan Nicklas Github Twitter
  • Copy Webpack Plugin: Copy files and directories in webpack. -- MaintainerLen Boyette Github Twitter
  • Split By Path: Split By Path Webpack Plugin. -- MaintainerBohdan Tkachenko Github Twitter
  • SW Precache - Generates a service worker to precache bundle. -- MaintainerWill Farley Github
  • CoreJS Plugin - Core-JS as a webpack plugin. -- MaintainerPatrickJS Github
  • Bundle Analyzer - Utility that represents bundles as an interactive treemap. -- MaintainerYuriy Grunin Github
  • Module Mapping - Maps modules onto different files. -- MaintainerSpartez Team Github Twitter
  • Serverless Webpack - Serverless plugin to bundle your lambdas. -- MaintainerElastic Coders Github Twitter
  • Prerender SPA - Framework-agnostic static site generation for SPAs. -- MaintainerChris Fritz Github Twitter
  • Static Site Generator Plugin - Minimal, unopinionated static site generator. -- MaintainerMark Dalgleish Github
  • SVG Sprite Plugin - Plugin for SVG sprites and icons. -- MaintainerJeremy Tice (TodayTixGithub Twitter
  • Imagemin Webpack Plugin - Minify images with Imagemin. -- MaintainerGregory Benner Github Twitter
  • Prepack Webpack Plugin - A webpack plugin for prepack. -- MaintainerGajus Kuizinas Github
  • Modules CDN Webpack Plugin - Dynamically load your modules from a CDN. -- MaintainerThomas Sileghem Github
  • Generate package.json Plugin - Limit dependencies in a deployment package.json to only those that are actually being used by your bundle. -- MaintainerPaul Myburgh Github
  • Progressive Web App Manifest - PWA manifest manager and generator. -- MaintainerArthur A. Bergamaschi Github
  • FileManager Webpack Plugin - Copy, move, delete files and directories before and after Webpack builds -- MaintainerGregory Nowakowski Github
  • Fork TS Checker Webpack Plugin - Webpack plugin that runs typescript type checker on a separate process. -- MaintainerTypeStrong Team Github
  • Duplicate Package Checker Webpack Plugin - Warns you when multiple versions of the same package exist in your bundle -- MaintainerDarren Scerri Github
  • Circular Dependency Plugin - Detect modules with circular dependencies when bundling -- MaintainerAaron Ackerman Github
  • webpack-inject-plugin - A webpack plugin to dynamically inject code into the bundle. -- MaintainerAdam Dierkens Github
  • Public Path Manipulation Plugin - control publicPath of dynamically loaded resources at runtime -- MaintainerAndrew Goldis Github
  • Build Notifier Plugin - Display OS-level notifications for build errors and warnings. -- MaintainerRocco Cataldo Github
  • CSS Cleanup Webpack Plugin - A plugin to remove duplicated and unused css rules -- MaintainerDominik Weber Github
  • Extension Reloader - Hot reloading while developing browser extensions -- MaintainerRubens P. G. Cavalcante Github Twitter
  • Htmls Webpack Plugin: Simple and fast multiple-htmls-generating plugin for webpack. -- MaintainerZack Young Github Twitter
  • Mini css extract plugin: Lightweight CSS extraction plugin -- MaintainerWebpack Contrib Github
  • build-hash-webpack-plugin For each build, Webpack generates an in-memory hash allowing to know if two build outputs are the same or not. This plugin writes the described build hash in a separate json file. -- MaintainerRéda Housni Alaoui Github Twitter
  • webpack-hook-plugin - run any shell commands before or after webpack builds -- MaintainerDavid Kwon Github
  • Dynamic Vendor Webpack Plugin - Gives you a way to import vendors with dynamic variable and specific code splitting. -- Maintainer Lilian Saget-Lethias Github Twitter
  • Define Variable Webpack Plugin - Enhancement of DefinePlugin to store defined things in actual variables. -- Maintainer Lilian Saget-Lethias Github Twitter
  • Shell Script Webpack Plugin - A plugin for running arbitrary shell scripts when compiler hooks are triggered. -- Maintainer Drew Loomer Github Twitter
  • Stylelint Webpack Plugin: A Stylelint plugin for webpack. -- MaintainerRicardo Gobbo de Souza Github
  • ESLint Webpack Plugin: A ESLint plugin for webpack . -- MaintainerRicardo Gobbo de Souza Github
  • Exclude Assets Webpack Plugin: A plugin to exclude assets from webpack output based on a path RegExp pattern. -- MaintainerKlayton Faria Github
  • Webpack Shell Plugin Next: A plugin allows you to run any shell commands before or after webpack builds. -- MaintainerKuzmin Pavel Github
  • Gettext Webpack Plugin: Embed localization into your bundle using gettext. -- MaintainerJuan Luis Paz Github
  • Node Polyfill Plugin: Polyfill Node.js core modules. -- MaintainerRichie Bendall Github Twitter
  • Bytenode Plugin: Compile JavaScript into bytecode using bytenode. -- MaintainerHerbert Treis Neto Github
  • Chrome Extension Archive Webpack Plugin Create archive file to publish Chrome Exentions to Chrome Web Store -- MaintainerKeisukeYamashita Github
  • Layer-pack Webpack Plugin Allow to glob imports file & directories, build mono repo apps via inheritable source code / npm packages & share webpack configs -- MaintainerBraun Nathanaël Github
  • webpack-typescript-directory-compile-plugin Configure an source directory of typescript files and an output directory for JavaScript files. Each typescript file in the source directory and any newly added files will be compiled to individual JavaScript files. -- MaintainerStephen Sigwart Github

Webpack Tools

  • Webpack Dev Middleware: Middleware which arguments a live bundle. -- MaintainerWebpack Team Github
  • Webpack Dev Server: Serves a webpack app. Updates the browser on changes. -- MaintainerWebpack Team Github
  • Webpack Merge - Merge designed for Webpack. -- MaintainerJuho Vepsäläinen Github Twitter
  • NPM Install Webpack - Automatically install & save deps with Webpack. -- MaintainerEric Clemmons Github Twitter
  • Webpack Validator - Validates your webpack config with Joi. -- Maintainerjs-dxtools Team Github
  • Webpack Config Utils - Util. to make your webpack config easier to read. -- MaintainerKent C. Dodds Github Twitter
  • Angular2 Webpack Toolkit - Webpack tools and helpers for Angular 2. -- MaintainerAngularClass Github Twitter
  • Webpack Bundle Analyzer - Represents bundles as an interactive treemap. -- MaintainerYuriy Grunin Github Twitter
  • HJS Webpack: Helpers/presets for setting up webpack with hotloading. -- MaintainerHenrik Joreteg Github
  • Webpack Dashboard: A CLI dashboard for webpack dev server. -- MaintainerFormidable Labs Github
  • Neutrino: Combines the power of Webpack with the simplicity of presets. -- MaintainerEli Perelman Github
  • Speed Measure Plugin - Measures the speed of your webpack plugins and loaders. -- MaintainerStephen Cook Github
  • packtracker.io - Webpack bundle analysis on every commit, report webpack stats to every pull request.
  • BundleStats: Analyze webpack stats(bundle size, assets, modules, packages) and compare the results between different builds. -- MaintainerVio Github Twitter
  • Webpack Landing Generator: Easy way to create landing page that converts. -- MaintainerAliaksei Kuncevic Github Twitter
  • Webpack Dev Server Firewall: Prevents access to dev server from unknown IPs. -- MaintainerIgor Adamenko Github Twitter
  • RelativeCI: Run in-depth bundle analyses on every build and monitor webpack bundle size, assets, modules, and packages. Github

Research & Training

Articles

Videos

Courses

Books

  • SurviveJS - Webpack: Free book guiding from a webpack apprentice to master. Covers dev, prod, and advanced topics.

Webpack Examples

Community Examples

Angular

Framework Agnostic

React

Vue

Other

原文:https://webpack.js.org/awesome-webpack/