CARVIEW |
Select Language
HTTP/2 301
date: Wed, 23 Jul 2025 15:41:02 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: Wed, 23 Jul 2025 15:51:02 GMT
cache-control: max-age=600
x-proxy-cache: MISS
x-github-request-id: 5858:120B4F:D5472:F74A9:6881028D
accept-ranges: bytes
age: 0
via: 1.1 varnish
x-served-by: cache-maa10221-MAA
x-cache: MISS
x-cache-hits: 0
x-timer: S1753285263.614533,VS0,VE240
vary: Accept-Encoding
x-fastly-request-id: 267b1657944a700ba4dfea5fdd48ef4ad61c466e
cf-cache-status: DYNAMIC
report-to: {"group":"cf-nel","max_age":604800,"endpoints":[{"url":"https://a.nel.cloudflare.com/report/v4?s=c8X2IEEC6EtoFPgWeJ5WAn9yLzaecbA0vMvg2zyNxtJqTteMUj4GYXG4q4YKafnfFQB2MGDP0FXm5TZDIRMGZ5%2FsMPA8MvAqWv%2Bnfkw%3D"}]}
cf-ray: 963c479b1b5bf313-BLR
HTTP/1.1 301 Moved Permanently
Date: Wed, 23 Jul 2025 15:41:02 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=iKt%2Bqfyga15ec8uPZGNY5oZdjF8%2F8jRb037Ewe7YHhXucExKnk8h6uIHRJukzokopqjP7pRevvJbb73Z2nv3RzES8zQeoDmLXo%2BURus%3D"}]}
Nel: {"report_to":"cf-nel","success_fraction":0.0,"max_age":604800}
Server: cloudflare
CF-RAY: 963c479cce09a9b7-BLR
HTTP/2 200
date: Wed, 23 Jul 2025 15:41:03 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: Wed, 23 Jul 2025 00:10:44 GMT
access-control-allow-origin: *
etag: W/"68802884-17d27"
expires: Wed, 23 Jul 2025 15:51:03 GMT
cache-control: max-age=600
content-encoding: gzip
x-proxy-cache: MISS
x-github-request-id: 6B2E:35E0D9:DA073:FC041:6881028E
accept-ranges: bytes
via: 1.1 varnish
age: 0
x-served-by: cache-maa10244-MAA
x-cache: MISS
x-cache-hits: 0
x-timer: S1753285263.886169,VS0,VE243
vary: Accept-Encoding
x-fastly-request-id: a4dd68697deed9ce142af6316e469be67fc69677
cf-cache-status: DYNAMIC
report-to: {"group":"cf-nel","max_age":604800,"endpoints":[{"url":"https://a.nel.cloudflare.com/report/v4?s=7gBkauAf%2BkJDCAh4YGGI5QfJE%2FcQ16tcjdIOG9mHPev52vEQkKpam1c478fXZjG9YaVh2Cp20g0eaoNOnJooMojWknNrhLaROI99zLw%3D"}]}
cf-ray: 963c479cdfebf313-BLR
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