CARVIEW |
Select Language
HTTP/2 301
date: Thu, 31 Jul 2025 09:33:05 GMT
content-type: text/html
content-length: 162
location: https://webpack.js.org/configuration/plugins/
nel: {"report_to":"cf-nel","success_fraction":0.0,"max_age":604800}
server: cloudflare
x-origin-cache: HIT
access-control-allow-origin: *
expires: Thu, 31 Jul 2025 09:43:05 GMT
cache-control: max-age=600
x-proxy-cache: MISS
x-github-request-id: B176:1EF9A9:69D61:7E576:688B3851
accept-ranges: bytes
age: 0
via: 1.1 varnish
x-served-by: cache-bom-vanm7210031-BOM
x-cache: MISS
x-cache-hits: 0
x-timer: S1753954386.753292,VS0,VE213
vary: Accept-Encoding
x-fastly-request-id: a5d45ddae63c8918eb0d287d038e9abc80d10993
cf-cache-status: DYNAMIC
report-to: {"group":"cf-nel","max_age":604800,"endpoints":[{"url":"https://a.nel.cloudflare.com/report/v4?s=Ekm%2FfodCns1b2IB7T76Ae7VzYErNK4WulwDP4Uehyn41cAI4jkDnX5yyHLWMgXrhjzveupIuW%2FnhIAkUm%2FpjvGzcE72yYdL%2BTLtB"}]}
cf-ray: 967c179ebc646eca-BOM
HTTP/1.1 301 Moved Permanently
Date: Thu, 31 Jul 2025 09:33:05 GMT
Transfer-Encoding: chunked
Connection: keep-alive
Location: https://webpack.js.org/configuration/plugins/
Vary: accept-encoding
Report-To: {"group":"cf-nel","max_age":604800,"endpoints":[{"url":"https://a.nel.cloudflare.com/report/v4?s=%2FWTNErg6BMp3mWKUc%2FIp4MLjkaunj5%2BzPO3CHCT9c2VxNTmLjiX%2FL5rAIePE1aV%2FHIEo681b197uCHKbHdvZAd8QQkxNO7OKbj7D"}]}
Nel: {"report_to":"cf-nel","success_fraction":0.0,"max_age":604800}
Server: cloudflare
CF-RAY: 967c17a07d18da50-BOM
HTTP/2 200
date: Thu, 31 Jul 2025 09:33:06 GMT
content-type: text/html; charset=utf-8
content-length: 14474
nel: {"report_to":"cf-nel","success_fraction":0.0,"max_age":604800}
server: cloudflare
last-modified: Thu, 31 Jul 2025 00:16:12 GMT
access-control-allow-origin: *
etag: W/"688ab5cc-17d27"
expires: Thu, 31 Jul 2025 09:43:06 GMT
cache-control: max-age=600
content-encoding: gzip
x-proxy-cache: MISS
x-github-request-id: D9BF:5A938:96B8:A759:688B3851
accept-ranges: bytes
age: 0
via: 1.1 varnish
x-served-by: cache-bom-vanm7210061-BOM
x-cache: MISS
x-cache-hits: 0
x-timer: S1753954386.046407,VS0,VE218
vary: Accept-Encoding
x-fastly-request-id: 9dae1617f1ddb4bc3f3e1ab9d7b3c70742badf9e
cf-cache-status: DYNAMIC
report-to: {"group":"cf-nel","max_age":604800,"endpoints":[{"url":"https://a.nel.cloudflare.com/report/v4?s=vSKueoZc7z2m3CYDR5EuvmAN3hUAcsA6xXhkbUBv3%2FNn860HSzKJb%2B2sGpVf9XacAVwo00JhbGLmE8DlFrY6uC9S1TjnntEPp%2Fmg"}]}
cf-ray: 967c17a09e3d6eca-BOM
Plugins | webpack
Output
- assetModuleFilename
- asyncChunks
- auxiliaryComment
- charset
- chunkFilename
- chunkFormat
- chunkLoadTimeout
- chunkLoadingGlobal
- chunkLoading
- clean
- compareBeforeEmit
- crossOriginLoading
- cssChunkFilename
- cssFilename
- devtoolFallbackModuleFilenameTemplate
- devtoolModuleFilenameTemplate
- devtoolNamespace
- enabledChunkLoadingTypes
- enabledLibraryTypes
- enabledWasmLoadingTypes
- environment
- filename
- globalObject
- hashDigest
- hashDigestLength
- hashFunction
- hashSalt
- hotUpdateChunkFilename
- hotUpdateGlobal
- hotUpdateMainFilename
- iife
- ignoreBrowserWarnings
- importFunctionName
- importMetaName
- library
- libraryExport
- libraryTarget
- module
- path
- pathinfo
- publicPath
- scriptType
- sourceMapFilename
- sourcePrefix
- strictModuleErrorHandling
- strictModuleExceptionHandling
- trustedTypes
- umdNamedDefine
- uniqueName
- wasmLoading
- webassemblyModuleFilename
- workerChunkLoading
- workerPublicPath
- workerWasmLoading
Module
- defaultRules
- generator
- parser
- noParse
- unsafeCache
- rules
- Rule
- 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
- Rule.resource
- Rule.resourceQuery
- Rule.parser.parse
- Rule.rules
- Rule.scheme
- Rule.sideEffects
- Rule.test
- Rule.type
- Rule.use
- Rule.resolve
- 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
Stats
- Stats Presets
- Stats Options
- stats.all
- stats.assets
- stats.assetsSort
- stats.assetsSpace
- stats.builtAt
- stats.cached
- stats.cachedAssets
- stats.cachedModules
- stats.children
- stats.chunkGroupAuxiliary
- stats.chunkGroupChildren
- stats.chunkGroupMaxAssets
- stats.chunkGroups
- stats.chunkModules
- stats.chunkModulesSpace
- stats.chunkOrigins
- stats.chunkRelations
- stats.chunks
- stats.chunksSort
- stats.colors
- stats.context
- stats.dependentModules
- stats.depth
- stats.entrypoints
- stats.env
- stats.errorCause
- stats.errorDetails
- stats.errorErrors
- stats.errorStack
- stats.errors
- stats.errorsCount
- stats.errorsSpace
- stats.exclude
- stats.excludeAssets
- stats.excludeModules
- stats.groupAssetsByChunk
- stats.groupAssetsByEmitStatus
- stats.groupAssetsByExtension
- stats.groupAssetsByInfo
- stats.groupAssetsByPath
- stats.groupModulesByAttributes
- stats.groupModulesByCacheStatus
- stats.groupModulesByExtension
- stats.groupModulesByLayer
- stats.groupModulesByPath
- stats.groupModulesByType
- stats.groupReasonsByOrigin
- stats.hash
- stats.ids
- stats.logging
- stats.loggingDebug
- stats.loggingTrace
- stats.moduleAssets
- stats.moduleTrace
- stats.modules
- stats.modulesSort
- stats.modulesSpace
- stats.nestedModules
- stats.nestedModulesSpace
- stats.optimizationBailout
- stats.orphanModules
- stats.outputPath
- stats.performance
- stats.preset
- stats.providedExports
- stats.publicPath
- stats.reasons
- stats.reasonsSpace
- stats.relatedAssets
- stats.runtimeModules
- stats.source
- stats.timings
- stats.usedExports
- stats.version
- stats.warnings
- stats.warningsCount
- stats.warningsFilter
- stats.warningsSpace
- Sorting fields
- Extending stats behaviours
Plugins
The plugins
option is used to customize the webpack build process in a variety of ways. Webpack comes with a variety built-in plugins available under webpack.[plugin-name]
. See Plugins page for a list of plugins and documentation but note that there are a lot more out in the community.
plugins
An array of webpack plugins. For example, DefinePlugin
allows you to create global constants which can be configured at compile time. This can be useful for allowing different behavior between development builds and release builds. Starting with webpack 5.87.0 falsy values can be used to disable specific plugins conditionally.
webpack.config.js
module.exports = {
//...
plugins: [
new webpack.DefinePlugin({
// Definitions...
}),
false && new webpack.IgnorePlugin(), // disabled conditionally
],
};
A more complex example, using multiple plugins, might look something like this:
webpack.config.js
var webpack = require('webpack');
// importing plugins that do not come by default in webpack
var DashboardPlugin = require('webpack-dashboard/plugin');
// adding plugins to your configuration
module.exports = {
//...
plugins: [
new webpack.IgnorePlugin(/^\.\/locale$/, /moment$/),
// compile time plugins
new webpack.DefinePlugin({
'process.env.NODE_ENV': '"production"',
}),
// webpack-dev-server enhancement plugins
new DashboardPlugin(),
new webpack.HotModuleReplacementPlugin(),
],
};
« Previous
OptimizationNext »
DevServer