Documentation
Contribute
Vote
Blog
English
中文
한국어
Search
K
API
concepts
configuration
guides
loaders
migrate
plugins
webpack
api
Introduction
Command Line Interface
Node Interface
Stats Data
webpack-dev-server API
Hot Module Replacement
Loader Interface
Logger Interface
Module Methods
Module Variables
Compilation Object
Compiler Hooks
Compilation Hooks
ContextModuleFactory Hooks
JavascriptParser Hooks
NormalModuleFactory Hooks
Plugin API
Resolvers
blog
Blog
Roadmap 2021 (2020-12-08)
Webpack 5 release (2020-10-10)
concepts
Concepts
Entry Points
Output
Loaders
Plugins
Configuration
Modules
Module Resolution
Module Federation
Dependency Graph
Targets
The Manifest
Hot Module Replacement
Why webpack
Under The Hood
configuration
Configuration
Configuration Languages
Configuration Types
Entry and Context
Mode
Output
Module
Resolve
Optimization
Plugins
DevServer
Cache
Devtool
Target
Watch and WatchOptions
Externals
Performance
Node
Stats
Experiments
Other Options
contribute
Contribute
Writer's Guide
Writing a Loader
Writing a Plugin
Plugin Patterns
Release Process
Debugging
guides
Guides
Getting Started
Asset Management
Output Management
Development
Code Splitting
Caching
Authoring Libraries
Environment Variables
Build Performance
Content Security Policies
Development - Vagrant
Dependency Management
Installation
Hot Module Replacement
Tree Shaking
Production
Lazy Loading
ECMAScript Modules
Shimming
TypeScript
Web Workers
Progressive Web Application
Public Path
Integrations
Asset Modules
Advanced entry
Package exports
loaders
Loaders
babel-loader
coffee-loader
exports-loader
expose-loader
html-loader
imports-loader
node-loader
remark-loader
source-map-loader
thread-loader
val-loader
css-loader
less-loader
postcss-loader
sass-loader
style-loader
stylus-loader
migrate
Migrate
To v5 from v4
To v4 from v3
To v2 or v3 from v1
plugins
Plugins
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
Branding Guidelines
Glossary
Vote
License
ag-grid is proud to partner with webpack
Webpack 5
Webpack 4
Print Section
Plugins
Community
HtmlWebpackPlugin
Installation
Basic Usage
Configuration
Third party addons
webpack
AutomaticPrefetchPlugin
BannerPlugin
Options
Usage
Placeholders
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 URLs
Runtime values via runtimeValue
DllPlugin
DllPlugin
DllReferencePlugin
Modes
Usage
Examples
References
Source
Tests
EnvironmentPlugin
Usage
Usage with default values
Use Case: Git Version
DotenvPlugin
EvalSourceMapDevToolPlugin
Options
Examples
Basic Use Case
Exclude Vendor Maps
HashedModuleIdsPlugin
Options
Usage
HotModuleReplacementPlugin
Basic Usage
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
Options
Examples
Basic Use Case
Exclude Vendor Maps
Host Source Maps Externally
SplitChunksPlugin
Defaults
Configuration
optimization.splitChunks
splitChunks.automaticNameDelimiter
splitChunks.chunks
splitChunks.maxAsyncRequests
splitChunks.maxInitialRequests
splitChunks.defaultSizeTypes
splitChunks.minChunks
splitChunks.hidePathInfo
splitChunks.minSize
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
Getting Started
Note about source maps
Options
test
include
exclude
parallel
minify
minimizerOptions
warningsFilter
Examples
Use sourcemaps
Remove all comments
Contributing
License
EslintWebpackPlugin
Getting Started
Options
context
eslintPath
extensions
exclude
files
fix
formatter
lintDirtyModulesOnly
threads
Errors and Warning
Changelog
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
Getting Started
Options
Plugin Options
Loader Options
Examples
Recommend
Minimal example
Named export for CSS Modules
The publicPath option as function
Advanced configuration example
Hot Module Reloading (HMR)
Minimizing For Production
Using preloaded or inlined CSS
Extracting all CSS in a single file
Extracting CSS based on entry
Filename Option as function
Long Term Caching
Remove Order Warnings
Multiple Themes
Media Query Plugin
Contributing
License
StylelintWebpackPlugin
Getting Started
Options
configFile
context
exclude
extensions
files
fix
formatter
lintDirtyModulesOnly
stylelintPath
threads
Errors and Warning
Changelog
License
TerserWebpackPlugin
Getting Started
Note about source maps
Options
test
include
exclude
parallel
minify
terserOptions
extractComments
Examples
Preserve Comments
Remove Comments
Custom Minify Function
Typescript
Contributing
License
StylelintWebpackPlugin
Edit this page
·
Print this page
·
Jump to repository
« Previous
MiniCssExtractPlugin
Next »
TerserWebpackPlugin