中文文档
参与贡献
投票
博客
English
中文
한국어
API
概念
配置
指南
loader
迁移
plugin
webpack
api
简介
命令行接口(CLI)
Node 接口
Stats Data
webpack-dev-server API
Hot Module Replacement
Loader Interface
Logger 接口
模块方法
Module Variables
Compilation Object
compiler 钩子
compilation 钩子
ContextModuleFactory Hooks
JavascriptParser Hooks
NormalModuleFactory Hooks
Plugin API
解析器(Resolvers)
blog
Blog
Roadmap 2021 (2020-12-08)
Webpack 5 发布 (2020-10-10)
概念
概念
入口起点(entry points)
输出(output)
loader
plugin
配置(Configuration)
模块(Modules)
模块解析(Module Resolution)
Module Federation
依赖图(dependency graph)
target
manifest
模块热替换(hot module replacement)
为什么选择 webpack
揭示内部原理
配置
配置
Configuration Languages
Configuration Types
入口和上下文
模式(Mode)
Output
Module
解析(Resolve)
优化(Optimization)
插件(Plugins)
DevServer
Cache
Devtool
构建目标(Targets)
watch 和 watchOptions
外部扩展(Externals)
Performance
Node
Stats 对象
实验特性(Experiments)
其它选项
contribute
参与贡献
作者指引
编写 loader
自定义插件
插件模式
发布流程
调试
指南
指南
起步
管理资源
管理输出
开发环境
代码分离
缓存
创建库
环境变量
构建性能
内容安全策略
开发 - Vagrant
依赖管理
安装
模块热替换
Tree Shaking
生产环境
懒加载
ECMAScript 模块
Shimming 预置依赖
TypeScript
Web Workers
渐进式网络应用程序
公共路径
集成
资源模块
entry 高级用法
Package exports
loader
Loaders
babel-loader
coffee-loader
css-loader
exports-loader
expose-loader
html-loader
imports-loader
less-loader
node-loader
postcss-loader
pug-loader
remark-loader
sass-loader
source-map-loader
style-loader
stylus-loader
thread-loader
val-loader
迁移
Migrate
从 v4 升级到 v5
To v4 from v3
从 v1 升级到 v2 或 v3
plugin
插件
HtmlWebpackPlugin
AutomaticPrefetchPlugin
BannerPlugin
CommonsChunkPlugin
ContextExclusionPlugin
ContextReplacementPlugin
DefinePlugin
DllPlugin
EnvironmentPlugin
EvalSourceMapDevToolPlugin
HashedModuleIdsPlugin
HotModuleReplacementPlugin
IgnorePlugin
Internal webpack plugins
LimitChunkCountPlugin
MinChunkSizePlugin
ModuleConcatenationPlugin
ModuleFederationPlugin
NoEmitOnErrorsPlugin
NormalModuleReplacementPlugin
PrefetchPlugin
ProfilingPlugin
ProgressPlugin
ProvidePlugin
SourceMapDevToolPlugin
SplitChunksPlugin
WatchIgnorePlugin
CompressionWebpackPlugin
CopyWebpackPlugin
CssMinimizerWebpackPlugin
EslintWebpackPlugin
HtmlMinimizerWebpackPlugin
ImageMinimizerWebpackPlugin
InstallWebpackPlugin
JsonMinimizerWebpackPlugin
MiniCssExtractPlugin
StylelintWebpackPlugin
TerserWebpackPlugin
Comparison
Awesome webpack
品牌指南
术语表
遵循许可
Webpack 5
Webpack 4
Print Section
插件
Community
HtmlWebpackPlugin
安装
基本用法
配置
第三方插件
webpack
AutomaticPrefetchPlugin
BannerPlugin
选项
用法
占位符
CommonsChunkPlugin
Options
Examples
Commons chunk for entries
Explicit vendor chunk
Move common modules into the parent chunk
Extra async commons chunk
Passing the minChunks property a function
Manifest file
Combining implicit common vendor chunks and manifest file
More Examples
ContextExclusionPlugin
ContextReplacementPlugin
Usage
Content Callback
Other Options
DefinePlugin
Usage
Feature Flags
Service URL
Runtime values via runtimeValue
DllPlugin
DllPlugin
DllReferencePlugin
模式(Modes)
用法(Usage)
示例
参考
Source
Tests
EnvironmentPlugin
Usage
Usage with default values
Use Case: Git Version
DotenvPlugin
EvalSourceMapDevToolPlugin
选项
示例
基本用例
排除 Vendor(第三方库) Maps
HashedModuleIdsPlugin
Options
Usage
HotModuleReplacementPlugin
基本使用
IgnorePlugin
Using regular expressions
Using filter functions
Example of ignoring Moment Locales
Internal webpack plugins
environment
NodeEnvironmentPlugin
compiler
MemoryCachePlugin
ProgressPlugin
RecordIdsPlugin
entry
EntryPlugin
PrefetchPlugin
output
JsonpTemplatePlugin
NodeTemplatePlugin
LibraryTemplatePlugin
WebWorkerTemplatePlugin
EvalDevToolModulePlugin
SourceMapDevToolPlugin
HotModuleReplacementPlugin
source
APIPlugin
CompatibilityPlugin
ConstPlugin
ProvidePlugin
NodeStuffPlugin
RequireJsStuffPlugin
NodeSourcePlugin
NodeTargetPlugin
AMDPlugin
CommonJsPlugin
RequireContextPlugin
RequireEnsurePlugin
RequireIncludePlugin
DefinePlugin
optimize
LimitChunkCountPlugin
MergeDuplicateChunksPlugin
RemoveEmptyChunksPlugin
MinChunkSizePlugin
ModuleConcatenationPlugin
FlagIncludedChunksPlugin
RealContentHashPlugin
LimitChunkCountPlugin
Options
maxChunks
minChunkSize
Usage via CLI
MinChunkSizePlugin
Usage via CLI
ModuleConcatenationPlugin
Optimization Bailouts
Module Grouping Algorithm
Debugging Optimization Bailouts
ModuleFederationPlugin
Options
runtime
Specify package versions
Sharing hints
NoEmitOnErrorsPlugin
NormalModuleReplacementPlugin
Basic Example
Advanced Example
PrefetchPlugin
Options
ProfilingPlugin
Options
Usage: default
Usage: custom outputPath
ProgressPlugin
Usage
Providing function
Providing object
Percentage calculation
Supported Hooks
Source
ProvidePlugin
Usage: jQuery
Usage: jQuery with Angular 1
Usage: Lodash Map
Usage: Vue.js
SourceMapDevToolPlugin
配置项
示例
基本使用
排除 Vendor Maps
在宿主环境外部化 source map
SplitChunksPlugin
默认值
配置
optimization.splitChunks
splitChunks.automaticNameDelimiter
splitChunks.chunks
splitChunks.maxAsyncRequests
splitChunks.maxInitialRequests
splitChunks.defaultSizeTypes
splitChunks.minChunks
splitChunks.hidePathInfo
splitChunks.minSize
splitChunks.minSizeReduction
splitChunks.enforceSizeThreshold
splitChunks.minRemainingSize
splitChunks.layer
splitChunks.maxSize
splitChunks.maxAsyncSize
splitChunks.maxInitialSize
splitChunks.name
splitChunks.usedExports
splitChunks.cacheGroups
Examples
Defaults: Example 1
Defaults: Example 2
Split Chunks: Example 1
Split Chunks: Example 2
Split Chunks: Example 3
WatchIgnorePlugin
Options
webpack contrib
CompressionWebpackPlugin
Getting Started
Options
test
include
exclude
algorithm
compressionOptions
threshold
minRatio
filename
deleteOriginalAssets
Examples
Using Zopfli
Using Brotli
Multiple compressed versions of assets for different algorithm
Contributing
License
CopyWebpackPlugin
Getting Started
Options
Patterns
noErrorOnMissing
Options
Examples
Contributing
License
CssMinimizerWebpackPlugin
起步
关于 source maps 的提示
选项
test
include
exclude
parallel
minify
minimizerOptions
warningsFilter
示例
使用 sourcemaps
移除所有注释
贡献
License
EslintWebpackPlugin
开始
选项
context
eslintPath
extensions
exclude
files
fix
formatter
lintDirtyModulesOnly
threads
错误以及警告
更新日志
License
HtmlMinimizerWebpackPlugin
Getting Started
Options
test
include
exclude
parallel
minify
minimizerOptions
Contributing
License
ImageMinimizerWebpackPlugin
Getting Started
Standalone Loader
Standalone Plugin
Options
Plugin Options
Loader Options
Additional API
imageminNormalizeConfig(config)
Examples
Optimize images based on size
Optimize and transform images to webp
Contributing
License
InstallWebpackPlugin
dependencies
peer
packageManager
type
options
arguments
dev
quiet
prompt
Contributing
JsonMinimizerWebpackPlugin
Getting Started
Options
test
include
exclude
minimizerOptions
Contributing
License
MiniCssExtractPlugin
快速开始
选项
Plugin Options
Loader 选项
示例
推荐
最简单的例子
Named export for CSS Modules
publicPath 选项为函数
高级配置示例
模块热更新 (HMR)
生产模式压缩
使用预加载或内联 CSS
提取所有的 CSS 到一个文件中
基于入口提取 CSS
文件名选项设置为函数
长期缓存
移除 Order 警告
多主题配置
媒体查询插件
贡献
License
StylelintWebpackPlugin
Getting Started
选项
configFile
context
exclude
extensions
files
fix
formatter
lintDirtyModulesOnly
stylelintPath
threads
Errors 和 Warning
Changelog
License
TerserWebpackPlugin
入门
关于 source maps 说明
选项
test
include
exclude
parallel
minify
terserOptions
extractComments
示例
保留注释
删除注释
自定义压缩函数
Typescript
Contributing
许可证
JsonMinimizerWebpackPlugin
编辑此页
·
打印文档
·
前往仓库
« Previous
InstallWebpackPlugin
Next »
MiniCssExtractPlugin