Documentation
Contribute
Blog
English
中文
한국어
Search
API
concepts
configuration
guides
loaders
migrate
plugins
Datagrid and Charting for Enterprise Applications
webpack 5
webpack 4
Print Section
Configuration
Use a different configuration file
Set up a new webpack project
Configuration Languages
TypeScript
CoffeeScript
Babel and JSX
Configuration Types
Exporting a Function
Exporting a Promise
Exporting multiple configurations
dependencies
parallelism
Entry and Context
context
entry
Naming
Entry descriptor
Output filename
Dependencies
Dynamic entry
Runtime chunk
Mode
Usage
Mode: development
Mode: production
Mode: none
Output
assetModuleFilename
asyncChunks
auxiliaryComment
charset
chunkFilename
chunkFormat
chunkLoadTimeout
chunkLoadingGlobal
chunkLoading
clean
compareBeforeEmit
crossOriginLoading
cssChunkFilename
cssFilename
devtoolFallbackModuleFilenameTemplate
devtoolModuleFilenameTemplate
devtoolNamespace
enabledChunkLoadingTypes
enabledLibraryTypes
enabledWasmLoadingTypes
environment
filename
Template strings
globalObject
hashDigest
hashDigestLength
hashFunction
hashSalt
hotUpdateChunkFilename
hotUpdateGlobal
hotUpdateMainFilename
iife
ignoreBrowserWarnings
importFunctionName
importMetaName
library
amdContainer
name
type
export
auxiliaryComment
umdNamedDefine
libraryExport
libraryTarget
Expose a Variable
Expose Via Object Assignment
Module Definition Systems
Other Targets
module
path
pathinfo
publicPath
scriptType
sourceMapFilename
sourcePrefix
strictModuleErrorHandling
strictModuleExceptionHandling
trustedTypes
onPolicyCreationFailure
umdNamedDefine
uniqueName
wasmLoading
webassemblyModuleFilename
workerChunkLoading
workerPublicPath
workerWasmLoading
Module
defaultRules
generator
parser
css
javascript
json
json.exportsDepth
noParse
unsafeCache
rules
Rule
Rule Conditions
Rule results
Nested rules
Rule.assert
Rule.compiler
Rule.enforce
Rule.exclude
Rule.include
Rule.issuer
Rule.issuerLayer
Rule.layer
Rule.loader
Rule.loaders
Rule.mimetype
Rule.oneOf
Rule.options / Rule.query
Rule.parser
Rule.parser.dataUrlCondition
Rule.generator
dataUrl
emit
filename
publicPath
outputPath
Rule.resource
Rule.resourceQuery
Rule.parser.parse
Rule.rules
Rule.scheme
Rule.sideEffects
Rule.test
Rule.type
css/auto
Rule.use
Rule.resolve
resolve.fullySpecified
Rule.with
Condition
UseEntry
Module Contexts
Resolve
resolve
alias
aliasFields
byDependency
cache
cachePredicate
cacheWithContext
conditionNames
descriptionFiles
enforceExtension
exportsFields
extensionAlias
extensions
fallback
fullySpecified
importsFields
mainFields
mainFiles
modules
plugins
preferAbsolute
preferRelative
restrictions
roots
symlinks
unsafeCache
useSyncFileSystemCalls
resolveLoader
Optimization
checkWasmTypes
chunkIds
concatenateModules
emitOnErrors
avoidEntryIife
flagIncludedChunks
innerGraph
mangleExports
mangleWasmImports
mergeDuplicateChunks
minimize
minimizer
moduleIds
nodeEnv
portableRecords
providedExports
realContentHash
removeAvailableModules
removeEmptyChunks
runtimeChunk
sideEffects
splitChunks
usedExports
Plugins
plugins
DevServer
devServer
Usage via CLI
Usage via API
app
allowedHosts
bonjour
client
logging
overlay
progress
reconnect
webSocketTransport
webSocketURL
compress
devMiddleware
headers
historyApiFallback
host
local-ip
local-ipv4
local-ipv6
hot
ipc
liveReload
onListening
open
port
proxy
server
setupExitSignals
setupMiddlewares
static
directory
staticOptions
publicPath
serveIndex
watch
watchFiles
webSocketServer
Cache
cache
allowCollectingMemory
buildDependencies
cacheDirectory
cacheLocation
cacheUnaffected
compression
hashAlgorithm
idleTimeout
idleTimeoutAfterLargeChanges
idleTimeoutForInitialStore
managedPaths
maxAge
maxGenerations
maxMemoryGenerations
memoryCacheUnaffected
name
profile
readonly
store
type
version
Setup cache in CI/CD system
GitLab CI/CD
Github actions
Devtool
devtool
Qualities
Development
Special cases
Production
Extends
extends
Extending multiple configurations
Overridding Configurations
Loading configuration from external packages
Target
target
string
[string]
false
Watch and WatchOptions
watch
watchOptions
aggregateTimeout
ignored
poll
followSymlinks
stdin
Troubleshooting
Changes Seen But Not Processed
Not Enough Watchers
macOS fsevents Bug
Windows Paths
Vim
Saving in WebStorm
Externals
externals
string
[string]
object
function
RegExp
Combining syntaxes
byLayer
externalsType
commonjs
global
module
import